Menu

linking problem with MSVC6

Help
Anonymous
2004-04-24
2004-04-24
  • Anonymous

    Anonymous - 2004-04-24

    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.

     
    • Anonymous

      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!

       
    • Anonymous

      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.

       

Log in to post a comment.