社区
C语言
帖子详情
Cannot open include file: 'sample.h': No such file or directory
myaibo
2007-07-16 11:06:20
出现这问题,按字面理解意思是当前目录下没有此文件。可的确存在,不知道是什么原因。请高手指点
...全文
440
7
打赏
收藏
Cannot open include file: 'sample.h': No such file or directory
出现这问题,按字面理解意思是当前目录下没有此文件。可的确存在,不知道是什么原因。请高手指点
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
myaibo
2007-07-16
打赏
举报
回复
我现在按两种方法解决了此问题:
1、绝对路径。
2、就是believefym提示的添加到visual studio的环境的包含目录
我把.h放到.c相同目录,编译还是没通过。
fengdream能否详细解答
believefym
2007-07-16
打赏
举报
回复
把sample.h的目录添加到工程的额外附加目录,或者添加到visual studio的环境的包含目录
fengdream
2007-07-16
打赏
举报
回复
.h放到.c相同目录,或者设置包含路径
myaibo
2007-07-16
打赏
举报
回复
我采用了PRO*C/C++调用oracle数据库,代码比较长。
工程中我也加入了这个文件,开发工具是visual C++
二楼兄弟说环境变量和这有关系吗?因为这个头文件是我自己定义的。
不过我刚才用了绝对路径就好了,绝对路径是:
#include <D:\\Program Files\\Microsoft Visual Studio\\MyProjects\\djyyk\\sample.h>
lockhall
2007-07-16
打赏
举报
回复
贴代码出来看看
yinenlai
2007-07-16
打赏
举报
回复
当前工程中有没有加进这个文件???
bargio_susie
2007-07-16
打赏
举报
回复
检查环境变量设置对了没有。。。。
DebuggingWithGDB 6.8-2008
4.5 Your Program’s Working
Directory
. . . . . . . . . . . . . . . . . . . . . . . . . . 4.6 Your Program’s Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.7 Debugging an ...
基于mediastreamer2的网络电话实现流程以及源码库
error: /user/
include
/python2.7/pyconfig.h:15:52: fatal error: arm-linux-gnueabi/python2.7/pyconfig.h: No such
file
or
directory
compilation terminated. 分析::找不到arm-linux-gnueabi/python2.7/...
微软内部资料-SQL性能优化2
To reserve or commit memory and unintentionally not release it when it is no longer being used. A process can leak resources such as process memory, pool memory, user and GDI objects, handles, threads...
error while loading shared libraries: xx.so: cannot
open
shared object
file
: No such
file
错误的原因和解决办法
./xtts_offline_
sample
: error while loading shared libraries: libmsc.so: cannot
open
shared object
file
: No such
file
or
directory
原因一般有两个: 一个是操作系统里确实没有包含该共享库(lib*.so.*文件)...
exp: error while loading shared libraries: libclntsh.so.10.1: cannot
open
shared object
file
: No suc
将exp的脚本写在shell中,运行时出错,脚本很简单如下: [client@NYS amrldvw]$ vi exp.sh #!/bin/sh cd /u01/dump/amrldvw ...exp ${owner}/${owner}@${sid}
file
=${owner}_${year}.dmp log=${owner}...
C语言
69,382
社区成员
243,073
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章