当前位置:网站首页>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
边栏推荐
- [MySQL usage Script] catch all MySQL time and date types and related operation functions (3)
- 从外卖点单浅谈伪需求
- Talking about fake demand from takeout order
- Lb10s-asemi rectifier bridge lb10s
- [notes of in-depth study paper]transbtsv2: wider instead of deep transformer for medical image segmentation
- There is no monitoring and no operation and maintenance. The following is the commonly used script monitoring in monitoring
- MySQL - database query - sort query, paging query
- Fragmented knowledge management tool memos
- JPA规范总结和整理
- Pycharm installation third party library diagram
猜你喜欢

ASEMI整流桥HD06参数,HD06图片,HD06应用

Can and can FD

数据泄露怎么办?'华生·K'7招消灭安全威胁

jenkins安装

UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt

Solve Unicode decodeerror: 'GBK' codec can't decode byte 0xa2 in position 107

山东大学暑期实训一20220620

“百度杯”CTF比赛 九月场,Web:Upload

运筹说 第68期|2022年最新影响因子正式发布 快看管科领域期刊的变化

RHCSA8
随机推荐
Rocky基础命令3
go 字符串操作
leetcode:221. Maximum square [essence of DP state transition]
Binder通信过程及ServiceManager创建过程
JS to determine whether an element exists in the array (four methods)
How to apply the updated fluent 3.0 to applet development
Record in-depth learning - some bug handling
MSTP and eth trunk
Android本地Sqlite数据库的备份和还原
go 数组与切片
49. 字母异位词分组:给你一个字符串数组,请你将 字母异位词 组合在一起。可以按任意顺序返回结果列表。 字母异位词 是由重新排列源单词的字母得到的一个新单词,所有源单词中的字母通常恰好只用一次。
Summary and arrangement of JPA specifications
STM32 and motor development (from architecture diagram to documentation)
MMSeg——Mutli-view时序数据检查与可视化
Matlab paper chart standard format output (dry goods)
从外卖点单浅谈伪需求
Win10 - lightweight gadget
同事半个月都没搞懂selenium,我半个小时就给他整明白!顺手秀了一波爬淘宝的操作[通俗易懂]
[MySQL usage Script] catch all MySQL time and date types and related operation functions (3)
Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications