急请高人解答!!!

来源:百度知道 编辑:UC知道 时间:2024/06/25 03:27:35
1、我编了个程序constants.h,链接时却出现这样的提示:Can not compile the file "constants.h";no compile tool is associated with the file extension.
请问我应该怎么做?
2、另外一个程序,链接时也出现提示:fatal error C1083: Cannot open include file: 'Constants.h': No such file or directory
执行 cl.exe 时出错
请问这又是什么意思?我该怎样做才能运行程序?

C编译器的安装目录下面有个INclude的文件夹,里面放的都是库函数!你这样做,我要回去试一试,很有意思!我用的是TC,include好找

constants.h是头文件,不能编译。你直接点击后面的那个链接就行了。
fatal error C1083: Cannot open include file: 'Constants.h': No such file or directory 显然是说没有找到'Constants.h',也就是说你没有把'Constants.h'包含到程序搜索的目录下。