Morya
2008-Dec-01 05:53 UTC
[Xapian-discuss] build simpleindex.cc on windows using vc9 don't know libs
Dear All Guys, Hello there! Greetings! I am currently using VC9 to build xapian simplest sample simpleindex on Windows. I have managed to build xapian, using the tool recommended at the bottom of this page. http://www.xapian.org/download.php (Compiling on MS Windows with MSVC) All the sample apps and test programs did successfully run, but when I create a project from the code, I don't know what libs should I include... There are so many libs, in the "Release" folder. I tried to add all of them to my project, but I still got 20 errors complaining that some external symbols missing. I thought of reading the Makefile myself, but, obviously, it's not a easy job for me. Can anybody tell me what I am doing wrong here, thanks a lot! Best Regards Morya ------------------------ 1>libbackend.lib(dbfactory_remote.obj) : error LNK2001: unresolved external symbol __imp__WSAStartup at 8 1>libbackend.lib(dbfactory_remote.obj) : error LNK2001: unresolved external symbol __imp__WSACleanup at 0 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__WSACleanup at 0 1>libflint.lib(flint_table.obj) : error LNK2001: unresolved external symbol _inflateEnd 1>libflint.lib(flint_table.obj) : error LNK2001: unresolved external symbol _inflate 1>libflint.lib(flint_table.obj) : error LNK2001: unresolved external symbol _inflateInit2_ 1>libflint.lib(flint_table.obj) : error LNK2001: unresolved external symbol _deflateEnd 1>libflint.lib(flint_table.obj) : error LNK2001: unresolved external symbol _deflate 1>libflint.lib(flint_table.obj) : error LNK2001: unresolved external symbol _deflateInit2_ 1>libnet.lib(remoteconnection.obj) : error LNK2001: unresolved external symbol __imp__closesocket at 4 1>libnet.lib(remoteconnection.obj) : error LNK2001: unresolved external symbol __imp__select at 20 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__select at 20 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__WSAGetLastError at 0 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__getsockopt at 20 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__connect at 12 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__setsockopt at 20 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__ioctlsocket at 12 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__htons at 4 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__socket at 12 1>libnet.lib(tcpclient.obj) : error LNK2001: unresolved external symbol __imp__gethostbyname at 4
Olly Betts
2008-Dec-01 06:41 UTC
[Xapian-discuss] build simpleindex.cc on windows using vc9 don't know libs
On Mon, Dec 01, 2008 at 01:53:30PM +0800, Morya wrote:> I don't know what libs should I include... There are so many libs, in the > "Release" folder.Yeah - I think we really should be building a single DLL here rather than statically linking against a huge number of libraries.> I tried to add all of them to my project, but I still got 20 errors > complaining that > some external symbols missing.Sounds like you're missing the external dependencies of lib and winsock.> I thought of reading the Makefile myself, but, obviously, it's not a easy > job for me.Me neither - I'm afraid I don't know how you're meant to specify those dependencies, but looking at how "omega" is built should reveal what's needed. Cheers, Olly