A shared lib linking issue during c++ development. Laptop had Lucid-32 and was building apps with g++ and wxWidgets using eclipse. Upgraded to Ubuntu precise. Builds now will no longer link to wxWidgets shared libs, though fine with Boost and other libraries. Same "undefined reference" from linker when linking from command line.
Added verbose to g++ linking script and the log shows -L/usr/local/lib so it should be searched. Lib needed is shown there as -lwx_gtk2_core-2.8 which is the correct version.
Correct shared libs are installed, and can be found via "ldconfig -v". Using showelf and nm against the specific library and comparing to the error log, the references do exist in the library. All required soft links are present in /usr/local/lib, and "find -L -type l" sees no broken links. A link exists with a name of libwx_gtk2_core-2.8.so which should satisfy this with the proper naming.
Copied over a previously built executable under Lucid to this Precise system. It is able to find and use the same shared wxWidgets libs. Runs okay.
Removed all wxWidgets components, downloaded from their site and rebuilt/installed. No change in behavior.
This is not one app, but many with this problem. It still builds fine on a Lucid system.
No similar problem found on wxWidgets forums.
Any thoughts on where to look at this point?
Bookmarks