{"id":228,"date":"2012-07-28T22:32:15","date_gmt":"2012-07-28T13:32:15","guid":{"rendered":"http:\/\/blog.belliny.net\/?p=228"},"modified":"2012-07-28T22:32:15","modified_gmt":"2012-07-28T13:32:15","slug":"ggcc","status":"publish","type":"post","link":"https:\/\/www.belliny.net\/?p=228","title":{"rendered":"g++\/gcc"},"content":{"rendered":"<p>GCC: GNU Compiler Collection<\/p>\n<ul>\n<li>Referrers to all the different languages that are supported by the GNU compiler.<\/li>\n<\/ul>\n<p>gcc: GNU C\u00a0\u00a0\u00a0\u00a0\u00a0 Compiler<br \/>\ng++: GNU C++ Compiler<\/p>\n<p>The main differences:<\/p>\n<ol>\n<li>gcc will compile: *.c\/*.cpp files as C and C++ respectively.<\/li>\n<li>g++ will compile: *.c\/*.cpp files but they will all be treated as C++ files.<\/li>\n<li>Also if you use g++ to link the object files it automatically links in the std C++ libraries (gcc does not do this).<\/li>\n<li>gcc compiling C files has less predefined macros.<\/li>\n<li>gcc compiling *.cpp and g++ compiling *.c\/*.cpp files has a few extra macros.<\/li>\n<\/ol>\n<p>http:\/\/stackoverflow.com\/questions\/172587\/what-is-the-difference-between-g-and-gcc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GCC: GNU Compiler Collection Referrers to all the different languages that are supported by the GNU compiler. gcc: GNU C\u00a0\u00a0\u00a0\u00a0\u00a0 Compiler g++: GNU C++ Compiler The main differences: gcc will compile: *.c\/*.cpp files as C and C++ respectively. g++ will compile: *.c\/*.cpp files but they will all be treated as C++ files. Also if you &hellip; <a href=\"https:\/\/www.belliny.net\/?p=228\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;g++\/gcc&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-dev"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":0,"href":"https:\/\/www.belliny.net\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.belliny.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}