Bug #1238
closedmissing symbol WText(WString const&, WContainerWidget*)
Description
Hello everyone,
when trying to link my application's executable file here is the link error I get:
/usr/bin/ld: application/libappLib.a(bootstrap.cpp.o): undefined reference to symbol 'Wt::WText::WText(Wt::WString const&, Wt::WContainerWidget*)'
/usr/bin/ld: note: 'Wt::WText::WText(Wt::WString const&, Wt::WContainerWidget*)' is defined in DSO /usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwt.so so try adding it to the linker command line
/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../lib/libwt.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
To this issue I attach my CMakeLists.txt files.
I try to link my application with the built-in http connector. It seemed to work fine until I added my models implementations. (using Wt::Dbo) Though, I was using hand-written Makefiles before using Wt::Dbo. With a growing dependencies list, I decided to use CMake for an easier compilation/link configuration.
My system is a Ubuntu 10.01 with "Linux 3.0.0-17-generic-pae i686" kernel.
I installed the wt library using aptitude (ubuntu package installer).
Best regards,
Greg
Files
Updated by Greg Saive over 12 years ago
- File root_CMakeLists.txt root_CMakeLists.txt added
- File application_CMakeLists.txt application_CMakeLists.txt added
- File core_CMakeLists.txt core_CMakeLists.txt added
- File models_CMakeLists.txt models_CMakeLists.txt added
There seems to be a major problem with several attachments named identically.
I, now, renamed the CMakeLists.txt files by prepending the directory name in which they are stored to it. (I have also renamed the root directory's file because I cannot delete files I have already attached to the issue.. Sorry about this little problem..)
I never encountered this Redmine bug before, I have been using Redmine for quite a while now, maybe there is something wrong with your configuration... Whatever, this is not my problem, I enclose the new CMakeLists.txt files so you can actually see my configuration.
Thank you in advance.
Best regards,
Greg
Updated by Wim Dumon over 12 years ago
Hello greg,
Did you run make VERBOSE=1
and check if the wt libraries are actually on the command line while linking your application?
Wim.
Updated by Koen Deforche over 12 years ago
- Status changed from New to Feedback
- Assignee set to Wim Dumon
- Target version set to 3.2.2
Updated by Koen Deforche over 12 years ago
- Status changed from Feedback to Closed