{"id":1269,"date":"2022-08-30T15:15:07","date_gmt":"2022-08-30T15:15:07","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/10\/linking-with-warning-and-then-undefined-reference-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:15:07","modified_gmt":"2022-08-30T15:15:07","slug":"linking-with-warning-and-then-undefined-reference-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/linking-with-warning-and-then-undefined-reference-collection-of-common-programming-errors\/","title":{"rendered":"linking with warning and then undefined reference-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to compile an application with Cmake.<\/p>\n<p>Almost at the end of the state: 100%<\/p>\n<p>I got:<\/p>\n<pre><code>\/..\/lib\/gcc\/arm-linux-gnueabi\/4.5.2\/..\/..\/..\/..\/arm-none-linux-gnueabi\/bin\/ld: warning: libIMGegl.so, needed by \/arm-linux-gnueabi\/lib\/libEGL.so, not found (try using -rpath or -rpath-link)\n<\/code><\/pre>\n<p>and then a lot of messages of<\/p>\n<pre><code>undefined reference to 'something'\n<\/code><\/pre>\n<p>Where can I added -rpath or -rpath-link<\/p>\n<p>This is my CMAKE FLAG:<\/p>\n<pre><code>set(CMAKE_C_FLAGS \"-O2 -mcpu=cortex-a9 -mfpu=vfp -mfloat-abi=softfp -g -mtune=xscale -msoft-float -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -fomit-frame-pointer -fno-strict-aliasing ${CMAKE_ARM_LINUX_FLAGS}\" CACHE INTERNAL \"\")  \n<\/code><\/pre>\n<p>Thanks in advance.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-10 00:13:13. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to compile an application with Cmake. Almost at the end of the state: 100% I got: \/..\/lib\/gcc\/arm-linux-gnueabi\/4.5.2\/..\/..\/..\/..\/arm-none-linux-gnueabi\/bin\/ld: warning: libIMGegl.so, needed by \/arm-linux-gnueabi\/lib\/libEGL.so, not found (try using -rpath or -rpath-link) and then a lot of messages of undefined reference to &#8216;something&#8217; Where can I added -rpath or -rpath-link This is my CMAKE FLAG: [&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-1269","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1269","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=1269"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1269\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}