当前位置:网站首页>Solve the problem of "unable to open source file" xx.h "in the custom header file on vs from the source
Solve the problem of "unable to open source file" xx.h "in the custom header file on vs from the source
2022-07-05 13:30:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
I wrote a header file myself , Pass in the main function #include When quoting Unable to open the source file , Check online , What most people do is : Right click on the item -> attribute ->VC++ Catalog -> Contains the directory -> Pull down shear head -> edit , Add... In the dialog box $(ProjectDir).
Problem solving ! But what is the principle ? Through further research , Find that the problem is that you are confused #include”xx.h” and #include<xx.h> Usage of ,
#include<xx.h> It means to find files directly from the function library provided by the compiler , The compiler searches from the standard library path .xxh
include”xx.h” It means to find from the customized file first , If not, look for the file from the function library , The compiler searches from the user's working path xx.h If we pass <> Reference the header file written by yourself , There is bound to be a problem that the source file cannot be found , Because our files are in the user directory , The above solution is essentially by appending the user directory to the compiler search scope , In fact, through <> Switch to ” “ You can solve the problem .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/149516.html Link to the original text :https://javaforall.cn
边栏推荐
- AVC1与H264的区别
- go map
- 蜀天梦图×微言科技丨达梦图数据库朋友圈+1
- “百度杯”CTF比赛 九月场,Web:SQL
- UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
- Realize the addition of all numbers between 1 and number
- stm32逆向入门
- 53. Maximum subarray sum: give you an integer array num, please find a continuous subarray with the maximum sum (the subarray contains at least one element) and return its maximum sum.
- The "Baidu Cup" CTF competition was held in February 2017, Web: explosion-2
- APICloud Studio3 WiFi真机同步和WiFi真机预览使用说明
猜你喜欢
随机推荐
蜀天梦图×微言科技丨达梦图数据库朋友圈+1
"Baidu Cup" CTF competition in September, web:sql
jenkins安装
LB10S-ASEMI整流桥LB10S
Navigation property and entityset usage in SAP segw transaction code
[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging
49. 字母异位词分组:给你一个字符串数组,请你将 字母异位词 组合在一起。可以按任意顺序返回结果列表。 字母异位词 是由重新排列源单词的字母得到的一个新单词,所有源单词中的字母通常恰好只用一次。
49. Grouping of alphabetic ectopic words: give you a string array, please combine the alphabetic ectopic words together. You can return a list of results in any order. An alphabetic ectopic word is a
“百度杯”CTF比赛 九月场,Web:SQL
Sorry, we can't open xxxxx Docx, because there is a problem with the content (repackaging problem)
Godson 2nd generation burn PMON and reload system
Binder通信过程及ServiceManager创建过程
Talking about fake demand from takeout order
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
Fragmented knowledge management tool memos
js判断数组中是否存在某个元素(四种方法)
【MySQL 使用秘籍】一網打盡 MySQL 時間和日期類型與相關操作函數(三)
APICloud Studio3 API管理与调试使用教程
[深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
手把手带你入门Apache伪静态的配置