[bt-devel] linker problems with 1.6.0? - help needed

Gary Holmlund gary.holmlund at gmail.com
Sun May 24 17:14:16 MST 2009


Martin Gruner wrote:
> Hi all,
>
> we use the following stupid program to check that linking BibleTime against 
> Sword is going to work:
>
> #include <iostream>
>
> #include <swmgr.h>
> #include <installmgr.h>
> #include <ftptrans.h>
>
> int main(int argc, char* argv[])
> {
> 	sword::SWMgr mgr;
> 	sword::InstallMgr imgr;
> 	sword::FTPTransport trans("example.com");
>
> 	return 0;
> }
>
> However, after just upgrading to 1.6.0, I get the following error trying to 
> compile the test program:
>
> /home/martin/bin/c++
>   CMakeFiles/cmTryCompileExec.dir/sword_linker_check.cpp.o -o
>   cmTryCompileExec -rdynamic -L/usr/local/lib -lclucene -lsword -lcurl -lz
>   -Wl,-rpath,/usr/local/lib
>
>   CMakeFiles/cmTryCompileExec.dir/sword_linker_check.cpp.o: In function
>   `main':
>
>   sword_linker_check.cpp:(.text+0xd7): undefined reference to
>   `sword::InstallMgr::InstallMgr(char const*, sword::StatusReporter*,
>   sword::SWBuf, sword::SWBuf)'
>
> My sword was just built with curl and clucene support and installed into 
> /usr/local. Sword libs in /usr/lib have been cleaned. It worked with the 
> previous installation of 1.5.11. Did I make a mistake? Does the check program 
> need to be changed?
>
> I would be glad about QUICK help, as we are aiming to release BibleTime 2 this 
> week.
>
> mg
>   
Martin,

I tried sword 1.6 and saw the same error. I had an older sword installed 
via the package manager. I removed it and then was able to rebuild BT 
ok. It must be trying to link to the older library and causing the problem.

Gary



More information about the bt-devel mailing list