关于vc6.0环境设置的一个问题

hanxz 2004-08-11 08:57:42
i use class wizard add one class ,but when i compile ,the system report "can not find
the type ',i have include the "class.h", later when i copy the class.h to ../vc98/include
,it is ok ,and i have add . to the include enviroment parameter ,could you tell me how to solve the problem,thanks for you!
...全文
116 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
hanxz 2004-08-11
  • 打赏
  • 举报
回复
我也是这样认为,最后发现通过class wizard 田家得找不到,通过添加 .h .cpp 可以找到,上面那个找不到的,将其靠到 include 目录下,也正常compile run ,thanks for you
reply !
liangbch 2004-08-11
  • 打赏
  • 举报
回复
在VC中, *.h 可以放在任何目录下,但是必须在 #include 指明其相对路径。如果在#inlucde 语句中不指明路经,则vc会在 .dsp 文件所在的目录 和 vc设置的include 路径中去找这个文件,如果找不到,在编译时会报错。
在vc中,设定include 目录的方法:tools->options->directories 选项卡 中,Show directory for 组合框中选中include files,然后就可以添加和删除include 文件夹了。

33,006

社区成员

发帖
与我相关
我的任务
社区描述
数据结构与算法相关内容讨论专区
社区管理员
  • 数据结构与算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧