Project

General

Profile

Undefined Symbols for Architecture x86_64 on Mac OS X 10.9 using Qt Creator and clang

Added by Jeremy Brisko over 11 years ago

I have got Boost and Wt built and linking to my project, however when I try and build the Hello Application I get these errors. Does anyone have any ideas what may be causing it?

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.6 -o Web main.o   -F/Users/user/Qt5.2.0/5.2.0-beta1/clang_64/lib -L /usr/local/lib -lwt -lwthttp -lboost_regex -lboost_signals -lboost_system -lboost_filesystem -lboost_program_options -lboost_date_time -lboost_thread -lstdc++ -framework QtCore -framework Foundation 
Undefined symbols for architecture x86_64:
  "Wt::WObject::setObjectName(std::string const&)", referenced from:
      vtable for HelloApplication in main.o
  "Wt::WApplication::makeAbsoluteUrl(std::string const&) const", referenced from:
      vtable for HelloApplication in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Web] Error 1
04:32:46: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project AdremCS (kit: Desktop Qt 5.2.0 clang 64bit)
When executing step 'Make'

Replies (2)

RE: Undefined Symbols for Architecture x86_64 on Mac OS X 10.9 using Qt Creator and clang - Added by Jeremy Brisko over 11 years ago

I figured this out. In Qt Creator you need to add a CONFIG += c++11.

Thanks

RE: Undefined Symbols for Architecture x86_64 on Mac OS X 10.9 using Qt Creator and clang - Added by Freddy Martinez Garcia almost 11 years ago

Hi my friend...

I have exactly this problem. I had set CONFIG=c++11 in my .pro file and the problem still remain...

can you tell me how you fix it ??

thank u

best regards

freddy

    (1-2/2)