Undefined references everywhere when trying to use Wt::Dbo
Added by Amir Hadzic about 15 years ago
Hello Everyone!
I have the following "codebase":
- wtDboTest/CMakeLists.txt
- wtDboTest/source/CMakeLists.txt
- wtDboTest/source/Main.C
- wtDboTest/source/wtDboTest.h
- wtDboTest/source/wtDboTest.cpp
This is what I get when I try to compile:
http://pastebin.com/RyKhuCgh
Basically, a bunch of undefined references for everything in Wt::Dbo. I guess I need to link some libraries or something...
Thank you!
Replies (2)
RE: Undefined references everywhere when trying to use Wt::Dbo - Added by Amir Hadzic about 15 years ago
I'm very, very sorry for posting in the wrong subforum...
RE: Undefined references everywhere when trying to use Wt::Dbo - Added by Amir Hadzic about 15 years ago
I have solved the problem by adding wtdbo and wtdbosqlite3 to TARGET_LINK_LIBRARIES in wtDboTest/source/CMakeLists.txt:http://pastebin.com/VbbfHzDW.