Project

General

Profile

Actions

Bug #1238

closed

missing symbol WText(WString const&, WContainerWidget*)

Added by Greg Saive over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/13/2012
Due date:
% Done:

0%

Estimated time:

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

CMakeLists.txt (447 Bytes) CMakeLists.txt root directory's CMakeLists.txt Greg Saive, 04/13/2012 05:47 PM
CMakeLists.txt (114 Bytes) CMakeLists.txt application directory's CMakeLists.txt Greg Saive, 04/13/2012 05:47 PM
CMakeLists.txt (116 Bytes) CMakeLists.txt core directory's CMakeLists.txt Greg Saive, 04/13/2012 05:47 PM
CMakeLists.txt (139 Bytes) CMakeLists.txt models directory's CMakeLists.txt Greg Saive, 04/13/2012 05:47 PM
root_CMakeLists.txt (447 Bytes) root_CMakeLists.txt root (as in parent directory) directory CMakeLists.txt Greg Saive, 04/13/2012 11:35 PM
application_CMakeLists.txt (114 Bytes) application_CMakeLists.txt application directory CMakeLists.txt Greg Saive, 04/13/2012 11:35 PM
core_CMakeLists.txt (116 Bytes) core_CMakeLists.txt core directory CMakeLists.txt Greg Saive, 04/13/2012 11:35 PM
models_CMakeLists.txt (139 Bytes) models_CMakeLists.txt models directory CMakeLists.txt Greg Saive, 04/13/2012 11:35 PM

Updated by Greg Saive over 12 years ago

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

Actions #2

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.

Actions #3

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
Actions #4

Updated by Koen Deforche over 12 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF