[odb-users] odb::sqlite::database lining error
CanisMajorWuff
canismajorwuff at gmail.com
Sat Dec 8 11:24:16 EST 2012
Hi,
I am on Windows 7 using mingw64 (ruben build). I compiled libodb and
libodb-sqlite packages.
I wrote a small test application to test odb. The compilation was
successfully completed. But I have linking errors.
Here it is linking command:
['d:\\mingw\\bin\\g++.exe', '-Wl,--enable-auto-import',
'-Wl,--enable-auto-import', 'src\\Main.cpp.1.o', '-o', 'e
:\\Documents\\documents\\C++Projects\\orm\\build\\src\\ormtest.exe',
'-Wl,-Bstatic', '-LD:/odb/libodb/lib', '-LD:
/odb/sqlite/lib', '-LD:/sqlite3', '-lsqlite3', '-lodb', '-lodb-sqlite',
'-Wl,-Bdynamic']
The errors:
src\Main.cpp.1.o:Main.cpp:(.text.startup+0xe4): undefined reference to
`__imp__ZN3odb6sqlite8databaseC1ERiPPcbibR
KSsNS_7details12transfer_ptrINS0_18connection_factoryEEE'
src\Main.cpp.1.o:Main.cpp:(.text.startup+0x125): undefined reference to
`__imp__ZN3odb6sqlite8databaseD1Ev'
src\Main.cpp.1.o:Main.cpp:(.text.startup+0x1a1): undefined reference to
`__imp__ZN3odb6sqlite8databaseD1Ev'
d:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
src\Main.cpp.1.o: bad
reloc address 0x0 in section `.pdata.startup'
d:/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.1/../../../../x86_64-w64-mingw32/bin/ld.exe:
final link failed: In
valid operation
collect2.exe: error: ld returned 1 exit status
Please, help me to rid of this error.
More information about the odb-users
mailing list