{"id":1562,"date":"2022-08-30T15:17:34","date_gmt":"2022-08-30T15:17:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/27\/what-does-undefined-symbols-for-architecture-x86_64-mean-in-c-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:17:34","modified_gmt":"2022-08-30T15:17:34","slug":"what-does-undefined-symbols-for-architecture-x86_64-mean-in-c-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/what-does-undefined-symbols-for-architecture-x86_64-mean-in-c-collection-of-common-programming-errors\/","title":{"rendered":"What does undefined symbols for architecture x86_64 mean in C?-Collection of common programming errors"},"content":{"rendered":"<p>This is my code.<\/p>\n<pre><code>#include \n\nint main(){\nint first;\nint second;\nint third;\nfloat average=0.0;\n\n    printf (\"This program will find the average of 3 numbers.\\n\");\n    delay(1000);\n    printf (\"Type the first number.\\n\");\n    scanf (\"%d\", &amp;first);\n    printf (\"Type the second number.\\n\");\n    scanf (\"%d\", &amp;second);\n    printf (\"Type the third number.\\n\");\n    scanf (\"%d\", &amp;third);\n    average = (first+second+third)\/2.0;\n    printf (\"The average of %d, %d, and %d is %.3f\\n\", first, second, third, average);\n\nreturn (0);\n}\n<\/code><\/pre>\n<p>When I use gcc to compile it says<\/p>\n<pre><code>Undefined symbols for architecture x86_64:\n  \"_delay\", referenced from:\n      _main in cc62F0GD.o\nld: symbol(s) not found for architecture x86_64\ncollect2: ld returned 1 exit status\n<\/code><\/pre>\n<p>I am a beginner in coding. What does this mean and how do I fix it?<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-27 11:51:48. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>This is my code. #include int main(){ int first; int second; int third; float average=0.0; printf (&#8220;This program will find the average of 3 numbers.\\n&#8221;); delay(1000); printf (&#8220;Type the first number.\\n&#8221;); scanf (&#8220;%d&#8221;, &amp;first); printf (&#8220;Type the second number.\\n&#8221;); scanf (&#8220;%d&#8221;, &amp;second); printf (&#8220;Type the third number.\\n&#8221;); scanf (&#8220;%d&#8221;, &amp;third); average = (first+second+third)\/2.0; printf (&#8220;The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1562","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1562"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1562\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}