{"id":781,"date":"2022-08-30T15:07:04","date_gmt":"2022-08-30T15:07:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/undefined-symbol-___gxx_personality_v0-on-link-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:07:04","modified_gmt":"2022-08-30T15:07:04","slug":"undefined-symbol-___gxx_personality_v0-on-link-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/undefined-symbol-___gxx_personality_v0-on-link-collection-of-common-programming-errors\/","title":{"rendered":"Undefined Symbol ___gxx_personality_v0 on link-Collection of common programming errors"},"content":{"rendered":"<p>The deal is that you&#8217;re tired and <em>\/or<\/em> dumb. \ud83d\ude42<\/p>\n<p>Use<\/p>\n<pre><code>g++ test.cpp\n<\/code><\/pre>\n<p>instead, since this is c++ code.<\/p>\n<p>Or, if you <em>really<\/em> want to use <code>gcc<\/code>, add <code>-lstdc++<\/code> to the command line, like so:<\/p>\n<pre><code>gcc test.cpp -lstdc++\n<\/code><\/pre>\n<p>Running <code>md5<\/code> against the <code>a.out<\/code> produced under each scenario shows that it&#8217;s the same output.<\/p>\n<p>But, yeah, <code>g++<\/code> probably makes your world a simpler place.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 22:43:03. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>The deal is that you&#8217;re tired and \/or dumb. \ud83d\ude42 Use g++ test.cpp instead, since this is c++ code. Or, if you really want to use gcc, add -lstdc++ to the command line, like so: gcc test.cpp -lstdc++ Running md5 against the a.out produced under each scenario shows that it&#8217;s the same output. But, yeah, [&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-781","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/781","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=781"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/781\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}