Hello all,
I successfully built tntdb, but for some reason I get an undefined
reference error on the connect method when compiling a test program. I see
all the libraries in the appropriate directories, but still no luck...
Source code:
#include <iostream>
#include <tntdb/connect.h>
int main(void) {
tntdb::Connection conn = tntdb::connect("foo");
return 0;
}
Error:
/tmp/ccHpZ7rc.o: In function `main':
tt.cpp:(.text+0x1cc): undefined reference to
`tntdb::connect(std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&)'
collect2: ld returned 1 exit status
Command I used to compile:
g++ test.cpp
As I am relatively new to Linux programming, I apologize in advance.
Any help/comments/suggestions would be greatly appreciate.
-Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general