
{"id":8153,"date":"2013-02-13T11:31:34","date_gmt":"2013-02-13T11:31:34","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8153"},"modified":"2013-02-13T11:31:34","modified_gmt":"2013-02-13T11:31:34","slug":"gcc-commandline-options-part-8-ansi","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/02\/13\/gcc-commandline-options-part-8-ansi\/","title":{"rendered":"GCC COMMANDLINE OPTIONS PART 8    -ansi"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$cat main.c\n#include&lt;stdio.h&gt;\n#include&lt;math.h&gt;\n\nint main(void)\n{\n int i=0;\n   float y;\n   printf(\"n The Geek Stuff [%d]n\", i);\n   y=sinf(2.5);\n   printf(\"%fn\",y);\n   return 0;\n}\n$gcc -ansi main.c\n\/tmp\/ccBNR3rx.o: In function `main':\nmain.c:(.text+0x3c): undefined reference to `sinf'\ncollect2: error: ld returned 1 exit status\n$gcc  main.c\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $cat main.c #include&lt;stdio.h&gt; #include&lt;math.h&gt; int main(void) { int i=0; float y; printf(&#8220;n The Geek Stuff [%d]n&#8221;, i); y=sinf(2.5); printf(&#8220;%fn&#8221;,y); return 0; } $gcc -ansi main.c \/tmp\/ccBNR3rx.o: In function `main&#8217;: main.c:(.text+0x3c): undefined reference to `sinf&#8217; collect2: error: ld returned 1 exit status $gcc main.c $<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8153"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8153"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8153\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}