当前位置:网站首页>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
边栏推荐
- Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
- 运筹说 第68期|2022年最新影响因子正式发布 快看管科领域期刊的变化
- Talk about seven ways to realize asynchronous programming
- [notes of in-depth study paper]transbtsv2: wider instead of deep transformer for medical image segmentation
- Huawei push service content, read notes
- 南理工在线交流群
- What are the private addresses
- Flutter InkWell & Ink组件
- C# 对象存储
- 使用Dom4j解析XML
猜你喜欢
华为推送服务内容,阅读笔记
精彩速递|腾讯云数据库6月刊
今年上半年,通信行业发生了哪些事?
私有地址有那些
leetcode:221. Maximum square [essence of DP state transition]
Win10——轻量级小工具
[notes of in-depth study paper]uctransnet: rethink the jumping connection in u-net from the perspective of transformer channel
Principle and configuration of RSTP protocol
RHCSA10
Flutter draws animation effects of wave movement, curves and line graphs
随机推荐
Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
Win10——轻量级小工具
Cloudcompare - point cloud slice
French scholars: the explicability of counter attack under optimal transmission theory
go map
Don't know these four caching modes, dare you say you understand caching?
MySQL --- 数据库查询 - 排序查询、分页查询
Could not set property ‘id‘ of ‘class XX‘ with value ‘XX‘ argument type mismatch 解决办法
Go pointer
【 script secret pour l'utilisation de MySQL 】 un jeu en ligne sur l'heure et le type de date de MySQL et les fonctions d'exploitation connexes (3)
Pycharm installation third party library diagram
CloudCompare——点云切片
FPGA 学习笔记:Vivado 2019.1 添加 IP MicroBlaze
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.
JPA规范总结和整理
LB10S-ASEMI整流桥LB10S
峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
go 数组与切片
What is a network port
49. 字母异位词分组:给你一个字符串数组,请你将 字母异位词 组合在一起。可以按任意顺序返回结果列表。 字母异位词 是由重新排列源单词的字母得到的一个新单词,所有源单词中的字母通常恰好只用一次。