Linking fails when compiling the "Hello, World!" application with clang++ and not g++
I was following the tutorial here: http://www.webtoolkit.eu/wt/doc/tutorial/wt.html
When I compiled using clang, I got this:
me@computer:dir $ clang++ -o hello.wt hello.cpp -lwt -lwthttp /tmp/hello-ea6db1.o:(.rodata._ZTV16HelloApplication[_ZTV16HelloApplication]+0x20): undefined reference to `Wt::WObject::id() const' /tmp/hello-ea6db1.o:(.rodata._ZTV16HelloApplication[_ZTV16HelloApplication]+0x30): undefined reference to `Wt::WObject::objectName() const' clang: error: linker command failed with exit code 1 (use -v to see invocation) Makefile:2: recipe for target 'all' failed make: *** [all] Error 1
But when I switched clang out for g there were no issues and it compiled/linked fine.