creat dlls in Visual C++6.0 with other libs

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.
 
J

Jack Klein

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:

[snip]

You need to ask in a group like or one of Microsoft's many support groups in the
family. We only discuss the standard C++
language here, not platform specific extensions like DLLs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top