gcc ld can't exported symbols...but they're there


i have c++ library c++ concentration perplexing functions classes exported library. library builds glorious concentration compiles nonetheless fails link. errors i follow form:




app-source-file.cpp:(.text+0x2fdb): capricious anxiety `lib-namespace::getstatusstr(int)'




classes library seem resolved only glorious linker, nonetheless giveaway functions exported information (like cosine lookup table) constantly outcome above error.



i am controlling ubuntu 8.04 (hardy), adult date latest ubuntu packages.



the management couple library (with libraries removed):



g++ -fpic -wall -o3 -shared -wl,-soname,lib-in-question.so -o ~/project/lib/release/lib-in-question.so


the management couple concentration (with libraries removed):



g++ -fpic -wall -o3  -l~/project/lib/release -llib-in-question -o ~/project/release/app-in-question


finally, appears (as best i tell) black doubt being exported properly:



nm -d ~/project/lib/release/lib-in-question.so | grep getstatusstr --> u _zn3lib-namespace12getstatusstrei


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?