{"id":220,"date":"2010-01-09T01:36:07","date_gmt":"2010-01-09T01:36:07","guid":{"rendered":"https:\/\/umarzuki.org\/blog\/?p=220"},"modified":"2010-01-09T01:36:07","modified_gmt":"2010-01-09T01:36:07","slug":"compile-c-pada-debian-lenny","status":"publish","type":"post","link":"https:\/\/umarzuki.org\/blog\/2010\/01\/09\/compile-c-pada-debian-lenny\/","title":{"rendered":"Compile C++ pada Debian Lenny"},"content":{"rendered":"<p>Pasang pakej g++ sebagai root<br \/>\n<code>su -<br \/>\naptitude install g++<\/code><\/p>\n<p>Untuk compile fail hello.cpp yang kandungannya seperti berikut<br \/>\n[code lang=&#8217;cpp&#8217;]#include <iostream><br \/>\nusing namespace std;<\/p>\n<p>int main ()<br \/>\n{<br \/>\n\tcout << \"Hello, world.\" << endl;\n\treturn 0;\n}\n[\/code]\n\nArahannya seperti berikut:\n<code>g++ hello.cpp -o hello<\/code><\/p>\n<p>Sengaja saya tambah pilihan dan parameter <strong>-o hello<\/strong> supaya program terhasil bernama hello, bukannya a.out. Untuk laksanakan program terhasil:<br \/>\n<code>.\/hello<\/code><\/p>\n<p>Hasil sepatutnya:<\/p>\n<blockquote><p>Hello, world.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Pasang pakej g++ sebagai root su &#8211; aptitude install g++ Untuk compile fail hello.cpp yang kandungannya seperti berikut [code lang=&#8217;cpp&#8217;]#include using namespace std; int main () { cout<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[108],"tags":[106,112,18,3],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-pengaturcaraan","tag-c","tag-cpp","tag-debian","tag-linux"],"_links":{"self":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/comments?post=220"}],"version-history":[{"count":0,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/220\/revisions"}],"wp:attachment":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/media?parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/categories?post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/tags?post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}