Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"error LNK2001: unresolved external symbol" with DLL

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Good morning.

I am using VC++6.0 SP5 on WinNT 4.0 SP6a.

I created a "Win32 Dynamic-Link Library Project", and I took advantage from a piece of code that I compilled succesfully, but in a "Win32 console" project (a .exe program).

I use Xerces-C libraries (I include the .lib in Project>Settings...).

When compilling, I get:
Linking...
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMTD.lib(crt0dat.obj)

So I include "/nodefaultlib:LIBCMTD.lib", but then I get:
Linking...
libcimtd.lib(iostrini.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
libcimtd.lib(cerrinit.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
libcimtd.lib(streamb.obj) : error LNK2001: unresolved external symbol "void * __cdecl operator new(unsigned int,int,char const *,int)" (??2@YAPAXIHPBDH@Z)
Debug/xxx.dll : fatal error LNK1120: 1 unresolved externals

Any experience?
Thank you very much.
 
Theese are usualy errors of wrong using of constructors. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top