当前位置:网站首页>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
边栏推荐
- What is a network port
- RHCSA10
- [深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
- Nantong online communication group
- Android本地Sqlite数据库的备份和还原
- DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
- leetcode 10. Regular expression matching regular expression matching (difficult)
- "Baidu Cup" CTF competition in September, web:sql
- There is no monitoring and no operation and maintenance. The following is the commonly used script monitoring in monitoring
- 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.
猜你喜欢
LB10S-ASEMI整流桥LB10S
STM32 reverse entry
Nantong online communication group
Asemi rectifier bridge hd06 parameters, hd06 pictures, hd06 applications
Fragmented knowledge management tool memos
C# 对象存储
[notes of in-depth study paper]transbtsv2: wider instead of deep transformer for medical image segmentation
SAE international strategic investment geometry partner
Flutter draws animation effects of wave movement, curves and line graphs
Catch all asynchronous artifact completable future
随机推荐
Shandong University Summer Training - 20220620
SAE international strategic investment geometry partner
Write API documents first or code first?
APICloud Studio3 WiFi真机同步和WiFi真机预览使用说明
53. 最大子数组和:给你一个整数数组 nums ,请你找出一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。
[notes of in-depth study paper]transbtsv2: wider instead of deep transformer for medical image segmentation
Word document injection (tracking word documents) incomplete
mysql econnreset_ Nodejs socket error handling error: read econnreset
C# 对象存储
Win10——轻量级小工具
leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
Interviewer soul torture: why does the code specification require SQL statements not to have too many joins?
Talk about seven ways to realize asynchronous programming
There is no monitoring and no operation and maintenance. The following is the commonly used script monitoring in monitoring
JPA规范总结和整理
Resttemplate details
【 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)
Rocky基础命令3
“百度杯”CTF比赛 九月场,Web:Upload
MySQL --- 数据库查询 - 排序查询、分页查询