B
bohemia
Hi all,
I using visual c++ to creat a dll to wrapper a class that provided
by another library.So I add the .lib to my win32 dll project under the
link .and in my project I add some header files the lib provided .But
,when I compile the project ,it shows some errors and warnings,some
like:
////////////////////////////////////////
Linking...
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(??1?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined
in PdfReader.obj
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __ltoa already defined in
LIBCMTD.lib(xtoa.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of
other libs; use /NODEFAULTLIB:library
Debug/pdfReaderDll.dll : fatal error LNK1169: one or more multiply
defined symbols found
////////////////////////////////////////////
I know the lib I used contains some ANSI C++ things.
I donn't know how to manage the problems ,
could give me some advices ..thanks in advance.
I using visual c++ to creat a dll to wrapper a class that provided
by another library.So I add the .lib to my win32 dll project under the
link .and in my project I add some header files the lib provided .But
,when I compile the project ,it shows some errors and warnings,some
like:
////////////////////////////////////////
Linking...
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::~basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >(void)"
(??1?$basic_strin
g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined
in PdfReader.obj
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __ltoa already defined in
LIBCMTD.lib(xtoa.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of
other libs; use /NODEFAULTLIB:library
Debug/pdfReaderDll.dll : fatal error LNK1169: one or more multiply
defined symbols found
////////////////////////////////////////////
I know the lib I used contains some ANSI C++ things.
I donn't know how to manage the problems ,
could give me some advices ..thanks in advance.