[odb-users] odb::sqlite::database lining error

Boris Kolpackov boris at codesynthesis.com
Mon Dec 10 10:14:11 EST 2012


Hi,

In the future please keep your replies CC'ed to the odb-users mailing
list as discussed in the posting guidelines:

http://www.codesynthesis.com/support/posting-guidelines.xhtml

CanisMajorWuff <canismajorwuff at gmail.com> writes:

> I did what you said.
> 1. the same result.

Ok, so the DLL approach doesn't work for some reason on your MinGW
setup (not an unusual thing to happen).


> 2. I rebuilt libodb and libodb-sqlite and now I have the following errors
>
> src\Well-odb.cxx.1.o:Well-odb.cxx:(.text+0x2e): undefined reference to  
> `__imp__ZN3odb7details11shared_base17_dec
> _ref_callbackEv'

Hm, for some reason your code is still referencing the symbols as if
they were in a DLL. Have you recompiled your code (i.e., Well-odb.cxx)
after reconfiguring and rebuilding libodb and libodb-sqlite?

Try these steps to make sure:

1. Remove libodb and libodb-sqlite builddirectories and unpack fresh
   source code from the archives.

2. Configure with --disable-shared and build.

3. Clean your project (i.e., remove all the *.o files) and recompile.


> BTW, I added libodb.dll to the path. Now, after rebuilding I don't have  
> dll at all.

Right, because now you are building static libraries.

Boris



More information about the odb-users mailing list