{"id":525,"date":"2021-01-09T11:25:47","date_gmt":"2021-01-09T11:25:47","guid":{"rendered":"https:\/\/www.shanawanka.com\/?p=525"},"modified":"2021-01-21T16:58:44","modified_gmt":"2021-01-21T16:58:44","slug":"how-to-compile-clanguage-in-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/www.shanawanka.com\/it\/how-to-compile-clanguage-in-ubuntu-linux\/","title":{"rendered":"How to compile clanguage in Ubuntu Linux."},"content":{"rendered":"<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/4BbCQs0pZmg?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=it-IT&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Perform the steps below to compile Clanguage in Ubuntu:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Start by searching the current directory :<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code><em>$ cd <span class=\"has-inline-color has-vivid-cyan-blue-color\">Directory_Name<\/span><\/em> \n$ cd <span class=\"has-inline-color has-vivid-cyan-blue-color\">Documents\/clanguage<\/span> o one directory at a time<\/code><\/pre>\n\n\n\n<script async=\"\" src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-7539552188435720\" data-ad-slot=\"3780889768\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>Then use GCC Compiler to : <span style=\"text-decoration: underline;\"><span class=\"has-inline-color has-luminous-vivid-orange-color\"><strong><em><a href=\"https:\/\/www.shanawanka.com\/it\/how-to-install-gcc-compiler-on-ubuntu\/\" target=\"_blank\" rel=\"noreferrer noopener\">If this command doesn&#8217;t work then CLICK HERE<\/a><\/em><\/strong><\/span><span class=\"has-inline-color has-black-color\">.<\/span><\/span><\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>$ gcc -Wall -o <span class=\"has-inline-color has-vivid-cyan-blue-color\">File_exe_name<\/span> <span class=\"has-inline-color has-vivid-cyan-blue-color\">File_name.c<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <span class=\"has-inline-color has-vivid-green-cyan-color\">-Wall<\/span> command shows <span class=\"has-inline-color has-vivid-green-cyan-color\"><em>All Warnings<\/em><\/span>. The <span class=\"has-inline-color has-vivid-green-cyan-color\">-o<\/span> command shows the <span class=\"has-inline-color has-vivid-green-cyan-color\"><em>Temporary file name<\/em><\/span>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then at last run the execute file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ .\/<span class=\"has-inline-color has-vivid-cyan-blue-color\">File_exe_name<\/span><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s it. now you can see the answer, and you can start using it.<\/p>","protected":false},"excerpt":{"rendered":"<p>How to Compile and Run a C Program on Ubuntu. This document shows how to compile and run a C program on Ubuntu Linux using the GCC compiler. Open up a terminal. Search for the terminal application in the Dash tool (located as the topmost item in the Launcher). Use a text editor to create the C source code. Type the command. Compile the program with GCC.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[62],"tags":[66,79,81,82,76,83,67],"class_list":["post-525","post","type-post","status-publish","format-standard","hentry","category-os-linux","tag-clanguage","tag-compile","tag-gcccompiler","tag-programmer-life","tag-shanawanka","tag-tutor","tag-ubuntu"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/comments?post=525"}],"version-history":[{"count":15,"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/posts\/525\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/posts\/525\/revisions\/631"}],"wp:attachment":[{"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/media?parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/categories?post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shanawanka.com\/it\/wp-json\/wp\/v2\/tags?post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}