posts - 14,  comments - 51,  trackbacks - 0
Windows: Using MFC, get unresolved external symbol errors for __argv, __argc, __mbctype
    I am trying to use the MFC library. In the project c/c++ code generation type, I have changed the runtime library to Multithreaded DLL.

    When I then compile the program it links with the multi threaded libraries but I get the following errrors:

    nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
    nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
    nafxcw.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
    
    The solution: When you use the multithreaded dll's in visual c++.NET, you need to specify that you are using MFC in a shared dll. This is specified in the project settings.
posted on 2006-06-22 11:48 名羽 阅读(2254) 评论(1)  编辑 收藏 引用 所属分类: c++& vc

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理