Windows C/C++ Linker errors
Posted by: Phil Davis
Date: September 21, 2005 12:32PM

Hi,

I get the following linker errors when trying to build a test app which will access mysql. I am pulling in the following lib -- "mysqlclient.lib". These specific errors below were from using Visual C/C++ 6.0, however, I get similar errors when using Visual Studio .NET 2003.

The linker suggests I use the following, but when I do I just get a different set of errors:
/NODEFAULTLIB:library

Any ideas



Linking...
LIBCMTD.lib(dosmap.obj) : error LNK2005: __errno already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in msvcrtd.lib(MSVCRTD.dll)
LIBCMTD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in msvcrtd.lib(MSVCRTD.dll)

there are quite a few more errors, of the same elk.

Options: ReplyQuote


Subject
Views
Written By
Posted
Windows C/C++ Linker errors
784
September 21, 2005 12:32PM
463
January 13, 2006 05:30PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.