I'm guessing you have a mismatch on the code generation for the sqlite lib and the server component. Thats what normally causes that sort of error in VC.
Mike M ----- Original Message ----- From: "Vanessa V. Nihues" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 17, 2004 8:03 PM Subject: [sqlite] Errors on release mode during link > Hi, > > I have a client/server aplication. I compiled sqlite into a lib and > linked it in the client aplication with success. When I linked the > server side, errors happened. In the debug mode I solved the problem but > in the release mode I made the same changes from debug but the errors > persist. > The first errors were: > > --------------------Configuration: MTCPAcessorioS - Win32 Release > MinDependency-------------------- > Linking... > libc.lib(atox.obj) : error LNK2005: _atol already defined in > msvcrt.lib(MSVCRT.dll) > libc.lib(crt0dat.obj) : error LNK2005: _exit already defined in > msvcrt.lib(MSVCRT.dll) > libc.lib(crt0dat.obj) : error LNK2005: __exit already defined in > msvcrt.lib(MSVCRT.dll) > libc.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in > msvcrt.lib(cinitexe.obj) > libc.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in > msvcrt.lib(cinitexe.obj) > libc.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in > msvcrt.lib(cinitexe.obj) > libc.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in > msvcrt.lib(cinitexe.obj) > LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of > other libs; use /NODEFAULTLIB:library > msvcrt.lib(cinitexe.obj) : warning LNK4098: defaultlib "libc.lib" > conflicts with use of other libs; use /NODEFAULTLIB:library > libc.lib(crt0.obj) : error LNK2001: unresolved external symbol _main > \Release\CP\MTCPAcessorioS\MTCPAcessorioS.exe : fatal error LNK1120: 1 > unresolved externals > Error executing link.exe. > > MTCPAcessorioS.exe - 9 error(s), 2 warning(s) > > > I changed project settings, in the link tab, to ignore msvcrt.lib. In > the debug mode it solved the problem. But in the release mode I had the > following problems: > > --------------------Configuration: MTCPAcessorioS - Win32 Release > MinDependency-------------------- > Linking... > LINK : warning LNK4049: locally defined symbol "_strncpy" imported > LINK : warning LNK4049: locally defined symbol "_atol" imported > LINK : warning LNK4049: locally defined symbol "_free" imported > LINK : warning LNK4049: locally defined symbol "_malloc" imported > LINK : warning LNK4049: locally defined symbol "_realloc" imported > ADOModule.obj : error LNK2001: unresolved external symbol __imp___mbscmp > \Release\CP\MTCPAcessorioS\MTCPAcessorioS.exe : fatal error LNK1120: 1 > unresolved externals > Error executing link.exe. > > MTCPAcessorioS.exe - 2 error(s), 5 warning(s) > > > What can I do to solve this problem? I am compiling in Microsoft Visual > C++ 6.0 and the project options are: > > /nologo /MD /W3 /GR /GX /O1 /D "NDEBUG" /D "_MBCS" /D > "_ATL_STATIC_REGISTRY" /D "_ATL_MIN_CRT" /D "_GXDLL" /D "WIN32" /D > "_WINDOWS" /D "_AFXDLL" > /Fp"\Release\CP\MTCPAcessorioS\MTCPAcessorioS.pch" /Yu"stdafx.h" > /Fo"\Release\CP\MTCPAcessorioS\\" /Fd"\Release\CP\MTCPAcessorioS\\" /FD > > > Thanks in advance, > Vanessa > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]