posts - 15,  comments - 50,  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 名羽 阅读(1260) 评论(1)  编辑 收藏 引用 所属分类: c++& vc

专题:Android  iPad jQuery Chrome OS

博客园首页  IT新闻  知识库  学英语  C++程序员招聘
标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]
每天10分钟,轻松学英语
网站导航: