Hi,
I've got the following error message while building my application (it's a MFC MDI app):
Linking...
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(dcprev.obj) : error LNK2001: unresolved external symbol __mbctype
Debug/FourPartsWorld.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
I've set libpath in Project Setting.
It only applies to MFC app; windows console app links correctly.
Does anyone know how to solve this problem?
Thanks anyway.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-04-24
I've finally solved the problem.
To build MFC app correctly I should only change Project Settings -> Link tab:
- Object/library module: copy libs from some XMLRPC test project
- Project Options: add /libpath:"..\Debug" at the end
C/C++ tab should not be changed!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-04-24
A little correction to my last post.
C/C++ tab should be modified. Considering you are adding your project to XMLRPC workspace, you should add /I "..\src" to Project Settings -> C/C++ -> Project Options
This enables you to include XmlRpc.h header.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I've got the following error message while building my application (it's a MFC MDI app):
Linking...
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(dcprev.obj) : error LNK2001: unresolved external symbol __mbctype
Debug/FourPartsWorld.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
I've set libpath in Project Setting.
It only applies to MFC app; windows console app links correctly.
Does anyone know how to solve this problem?
Thanks anyway.
I've finally solved the problem.
To build MFC app correctly I should only change Project Settings -> Link tab:
- Object/library module: copy libs from some XMLRPC test project
- Project Options: add /libpath:"..\Debug" at the end
C/C++ tab should not be changed!
A little correction to my last post.
C/C++ tab should be modified. Considering you are adding your project to XMLRPC workspace, you should add /I "..\src" to Project Settings -> C/C++ -> Project Options
This enables you to include XmlRpc.h header.