{"id":5414,"date":"2014-03-30T21:40:23","date_gmt":"2014-03-30T21:40:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/gdb-during-startup-program-exited-with-code-126-collection-of-common-programming-errors\/"},"modified":"2014-03-30T21:40:23","modified_gmt":"2014-03-30T21:40:23","slug":"gdb-during-startup-program-exited-with-code-126-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/gdb-during-startup-program-exited-with-code-126-collection-of-common-programming-errors\/","title":{"rendered":"gdb &ldquo;During startup program exited with code 126.&rdquo;-Collection of common programming errors"},"content":{"rendered":"<p>A <code>.o<\/code> file is not a program, it is an object file that needs to be linked with libraries to produce a program. You can use <code>gdb<\/code> to inspect code within it, but it is not runnable (the &#8220;cannot execute binary file&#8221; message). You will need to link it to make a program. Possibly something like<\/p>\n<pre><code>g++ -o simplesearch simplesearch.o\n<\/code><\/pre>\n<p>will suffice, but without more information it&#8217;s not clear if it needs more libraries than just the system C libraries and C++ runtime support, etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A .o file is not a program, it is an object file that needs to be linked with libraries to produce a program. You can use gdb to inspect code within it, but it is not runnable (the &#8220;cannot execute binary file&#8221; message). You will need to link it to make a program. Possibly something [&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-5414","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5414","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=5414"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5414\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}