找回密码
 注册
Simdroid-非首页
查看: 139|回复: 1

[H. 有限元编程] 【讨论】Open/API中,加上一个头文件,就出现了错误,这是什么错误?

[复制链接]
发表于 2004-7-22 21:26:36 | 显示全部楼层 |阅读模式 来自 江西南昌
我在vc中新建一个UG/Open AppWizard V18的工程,该方式直接生成的模板程序可以直接运行,我们不用改动任何一个字,但是如果我在文件头加上一行:#include "Afxtempl.h",该文件就不能连接了,出现6个errors,
请指点,连接时出现如下错误:
Linking...
   Creating library Debug/seed_mesh_2d.lib and object Debug/seed_mesh_2d.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
F:\PARA_mesh\application\seed_mesh_2d.dll : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
Creating browse info file...
  
seed_mesh_2d.dll - 6 error(s), 1 warning(s)
非常渴望高手给予指点!
发表于 2004-7-24 13:34:53 | 显示全部楼层 来自 浙江台州

回复: 【讨论】Open/API中,加上一个头文件,就出现了错误,这是什么错误?

Simdroid开发平台

#include <afxtempl.h>
前面加上
#include <afxwin.h>  
#include <afxwin.h>         
#include <afxext.h>         
#include <afxdisp.h>
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-3-29 18:07 , Processed in 0.028450 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表