{"id":250,"date":"2026-04-17T02:49:04","date_gmt":"2026-04-17T02:49:04","guid":{"rendered":"https:\/\/sites.tntech.edu\/acrockett\/?p=250"},"modified":"2026-04-17T02:49:05","modified_gmt":"2026-04-17T02:49:05","slug":"gcc-c-compiler-for-linux","status":"publish","type":"post","link":"https:\/\/sites.tntech.edu\/acrockett\/2026\/04\/17\/gcc-c-compiler-for-linux\/","title":{"rendered":"GCC C++ Compiler for Linux"},"content":{"rendered":"\n<p><strong>GCC (GNU Compiler Collection)<\/strong> is a foundational toolchain for C++ development, providing the\u00a0<strong>g++<\/strong>\u00a0compiler to transform C++ source code into executable binaries.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To install the C\/C++ extension type &#8216;<strong>c++<\/strong>&#8216; in the Extensions view (<strong><code><mark>Shift + ctrl +X<\/mark><\/code><\/strong>). And install C\/C++ extension.<br><br><\/li>\n\n\n\n<li><strong>Ensure GCC is installed:<\/strong>\n<ol class=\"wp-block-list\">\n<li>First, check to see whether GCC is already installed. To verify whether it is, open a Terminal window and enter the following command:<br><strong><code><mark>$ gcc -v<\/mark><\/code><\/strong><br><\/li>\n\n\n\n<li>If GCC isn&#8217;t installed, run the following command from the terminal window to update the Ubuntu package lists.<br><strong><code><mark>$ sudo apt-get update<\/mark><\/code><\/strong><br><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Next <strong>install the GNU compiler tools<\/strong> and the <strong>GDB debugger<\/strong> with this command:<br><strong><code><mark>$ sudo apt-get install build-essential gdb<\/mark><\/code><\/strong><\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GCC (GNU Compiler Collection) is a foundational toolchain for C++ development, providing the\u00a0g++\u00a0compiler to transform C++ source code into executable binaries.<\/p>\n","protected":false},"author":119,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[24,25,18,35,31,23],"class_list":{"0":"post-250","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-c","7":"tag-24","8":"tag-25","9":"tag-c","10":"tag-gcc","11":"tag-linux","12":"tag-setting-up-computer","13":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/users\/119"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/comments?post=250"}],"version-history":[{"count":1,"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/posts\/250\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/posts\/250\/revisions\/251"}],"wp:attachment":[{"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/categories?post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.tntech.edu\/acrockett\/wp-json\/wp\/v2\/tags?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}