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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Undefinedsymbol "new" linking C++ with Windows 2003 SDK

Status
Not open for further replies.

CaKiwi

Programmer
Apr 8, 2001
1,294
US
I am using WIndows 2003 server SDK on an AMD 64 system.
I can link C routines without error but when I link with a C++ routine I get the following errors:

libcimtd.lib(iostrini.obj) : error LNK2019: unresolved external symbol "void * _
_cdecl operator new(unsigned __int64,int,char const *,int)" (??2@YAPEAX_KHPEBDH@
Z) referenced in function "void __cdecl cout::`dynamic initializer'(void)" (??__
Ecout@@YAXXZ)
libcimtd.lib(streamb.obj) : error LNK2019: unresolved external symbol "void * __
cdecl operator new[](unsigned __int64,int,char const *,int)" (??_U@YAPEAX_KHPEBD
H@Z) referenced in function "protected: virtual int __cdecl streambuf::doallocat
e(void)" (?doallocate@streambuf@@MEAAHXZ)
tmot.exe : fatal error LNK1120: 2 unresolved externals

I assume I am not referencing the correct C++ libraries. Does anyone know what libraries I need?

Thank in advance

CaKiwi
 
Given that you mention AMD64, and the reference to unsigned __int64 in the error messages, I'd say you're missing some 64-bit libraries.

Perhaps there are 64-bit libraries on the site where you got the SDK from.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top