By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,484 Members | 1,041 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,484 IT Pros & Developers. It's quick & easy.

Compilation errors converting vc++ 6.0 to vc++ 7.1 (.NET 2003)

sangeetha jagannathan
P: 23
hi
i am converting a project from vc++ 6.0 to vc++ 7.1(visual c++ .NET 2003), while compiling i bet a lot of linking errors, can u help me fix it

the errors that i encountered are

Linking...
nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in libcp.lib(newop.obj)
nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in LIBC.lib(delete.obj)
nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new[](unsigned int)" (??_U@YAPAXI@Z) already defined in libcp.lib(newaop.obj)
nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete[](void *)" (??_V@YAXPAX@Z) already defined in LIBC.lib(delete2.obj)
util_server.lib(server_parse_tree.obj) : warning LNK4217: locally defined symbol ??0RWCollectable@@QAE@XZ (public: __thiscall RWCollectable::RWCollectable(void)) imported in function "public: __thiscall Queue::Queue(void)" (??0Queue@@QAE@XZ)
util_server.lib(server_parse_tree.obj) : warning LNK4217: locally defined symbol ??1RWCollectable@@UAE@XZ (public: virtual __thiscall RWCollectable::~RWCollectable(void)) imported in function "public: virtual __thiscall Queue::~Queue(void)" (??1Queue@@UAE@XZ)
nafxcw.lib(thrdcore.obj) : error LNK2019: unresolved external symbol __endthreadex referenced in function "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z)
nafxcw.lib(thrdcore.obj) : error LNK2019: unresolved external symbol __beginthreadex referenced in function "public: int __thiscall CWinThread::CreateThread(unsigned long,unsigned int,struct _SECURITY_ATTRIBUTES *)" (?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTR IBUTES@@@Z)
.\nt_libs\release\host_id.exe : fatal error LNK1120: 2 unresolved externals


thanking you
Feb 2 '07 #1
Share this Question
Share on Google+
4 Replies


Motoma
Expert 2.5K+
P: 3,235
This thread was moved to the C++ forum.
Feb 2 '07 #2

RedSon
Expert 5K+
P: 5,000
The first four errors are about methods that have been doubly defined. See if your program not only adds a .lib with these methods defined but you also have them defined in one of your own libraries. After you get that fixed, let me know, we can work on the rest.
Feb 2 '07 #3

sangeetha jagannathan
P: 23
The first four errors are about methods that have been doubly defined. See if your program not only adds a .lib with these methods defined but you also have them defined in one of your own libraries. After you get that fixed, let me know, we can work on the rest.

hi
i have fixed the link2005 error, now i am not able to fix the lnk2019 error. can u help me to fix it

thank you
Feb 6 '07 #4

Motoma
Expert 2.5K+
P: 3,235
hi
i have fixed the link2005 error, now i am not able to fix the lnk2019 error. can u help me to fix it

thank you
This page looks like it has a solution to exactly this problem, however it says it's a different error number.
Let me know if that link helps or not.
Feb 6 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.