Probably a linking error, but Im kind of stuck
Added by Tor Arne Fallingen over 10 years ago
I have tried posting this a few places, but no success yet.
Ive been playing around a bit with Wt now, but ever so often I encounter this silly little problem, and Im not certain where the error stems from:
Undefined symbols for architecture x86_64:
"Wt::WLink::WLink(Wt::WLink::Type, std::string const&)", referenced from:
ControlExample::page1() in ControlSkeleton.o
"Wt::WObject::setObjectName(std::string const&)", referenced from:
vtable for ControlExample in ControlSkeleton.o
"Wt::WString::WString(std::string const&, Wt::CharEncoding)", referenced from:
ControlExample::ControlExample(Wt::WEnvironment const&) in ControlSkeleton.o
ControlExample::header() in ControlSkeleton.o
"Wt::WApplication::makeAbsoluteUrl(std::string const&) const", referenced from:
vtable for ControlExample in ControlSkeleton.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: * [ControlSkeleton] Error 1
This is when I try to run the http://andres.jaimes.net/808/a-simple-cwt-witty-skeleton-for-starting-an-application/ example on my MacBook Pro.
Both my Boost and my Wt install are done to custom folders, so I had to run: export DYLD_LIBRARY_PATH=/custom/directory/lib:$DYLD_LIBRARY_PATH for Boost. I did not do this for Wt, but I have added DYLD_LIBRARY_PATH to my Run environment in Qt Creator. And Ive added the LIBS -lwt -lwthttp -lboost_signals (including their paths) to my *.pro file. I wonder if I lack some libraries in my LIBS settings, and Ive searched for what libraries the functions are dependent on, but I would not be surprised if someone provide me a link to a site I most definitively should have looked at. Im running this on my MacBook. Earlier today I ran the same program on my Raspberry Pi, no problems at all.... its so strange. Im trying to find somewhere I can see what DYLD_LIBRARY_PATH's are set on this MacBook, so if anyone knows..