久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Visual Studio 在哪里查找 C++ 頭文件?

Where does Visual Studio look for C++ header files?(Visual Studio 在哪里查找 C++ 頭文件?)
本文介紹了Visual Studio 在哪里查找 C++ 頭文件?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我從 SourceForge(HoboCopy,如果你好奇的話)查看了一份 C++ 應(yīng)用程序的副本并嘗試編譯它.

I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it.

Visual Studio 告訴我它找不到特定的頭文件.我在源碼樹中找到了這個(gè)文件,但是我需要把它放在哪里,以便編譯時(shí)找到它?

Visual Studio tells me that it can't find a particular header file. I found the file in the source tree, but where do I need to put it, so that it will be found when compiling?

是否有特殊目錄?

推薦答案

Visual Studio 按以下順序查找標(biāo)題:

Visual Studio looks for headers in this order:

  • 在當(dāng)前源目錄中.
  • 在項(xiàng)目屬性的附加包含目錄中(項(xiàng)目 -> [項(xiàng)目名稱] 屬性,在 C/C++ | 常規(guī)下).
  • 在 Visual Studio C++ 包括目錄下的工具選項(xiàng)項(xiàng)目和解決方案VC++ 目錄.
  • 在新版本的 Visual Studio (2015+) 中,不推薦使用上述選項(xiàng),并且在 Project PropertiesConfiguration 中提供了默認(rèn)包含目錄列表VC++ 目錄
  • In the current source directory.
  • In the Additional Include Directories in the project properties (Project -> [project name] Properties, under C/C++ | General).
  • In the Visual Studio C++ Include directories under ToolsOptionsProjects and SolutionsVC++ Directories.
  • In new versions of Visual Studio (2015+) the above option is deprecated and a list of default include directories is available at Project PropertiesConfigurationVC++ Directories

在您的情況下,將標(biāo)題所在的目錄添加到項(xiàng)目屬性(Project PropertiesConfigurationC/C++General其他包含目錄).

In your case, add the directory that the header is to the project properties (Project PropertiesConfigurationC/C++GeneralAdditional Include Directories).

這篇關(guān)于Visual Studio 在哪里查找 C++ 頭文件?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

How do I set the icon for my application in visual studio 2008?(如何在 Visual Studio 2008 中為我的應(yīng)用程序設(shè)置圖標(biāo)?)
Convert CString to const char*(將 CString 轉(zhuǎn)換為 const char*)
Remove secure warnings (_CRT_SECURE_NO_WARNINGS) from projects by default in Visual Studio(默認(rèn)情況下,在 Visual Studio 中從項(xiàng)目中刪除安全警告 (_CRT_SECURE_NO_WARNINGS))
How do I start a new CUDA project in Visual Studio 2008?(如何在 Visual Studio 2008 中啟動(dòng)新的 CUDA 項(xiàng)目?)
Exporting classes containing `std::` objects (vector, map etc.) from a DLL(從 DLL 導(dǎo)出包含 `std::` 對(duì)象(向量、映射等)的類)
What are some reasons a Release build would run differently than a Debug build(發(fā)布版本與調(diào)試版本的運(yùn)行方式不同的一些原因是什么)
主站蜘蛛池模板: 99亚洲综合 | 成人亚洲精品 | 欧美一区二区三区视频在线观看 | 欧美色专区 | 国产精品久久久久久久久久久久午夜片 | 亚洲视频中文字幕 | 一区二区在线免费观看 | 亚洲最大看片网站 | 亚洲精品大片 | 一级在线观看 | 午夜丰满寂寞少妇精品 | 久久国产精品-国产精品 | 超碰av在线 | 情侣酒店偷拍一区二区在线播放 | 福利视频网址 | 夜夜夜夜草 | 国产精品一码二码三码在线 | 欧美日在线 | 日韩av免费在线观看 | 亚洲影视在线 | 亚洲欧美日韩精品久久亚洲区 | 日本三级电影在线免费观看 | 一级黄色在线 | 91伦理片| 亚洲精选久久 | 精品中文字幕视频 | 久久免费观看视频 | 精品国产黄a∨片高清在线 www.一级片 国产欧美日韩综合精品一区二区 | 欧美日韩视频网站 | 精品国产乱码久久久久久图片 | 国产精品日韩欧美一区二区三区 | 日本一区二区三区精品视频 | 蜜月aⅴ免费一区二区三区 99re在线视频 | 国产高清免费 | 成人亚洲一区 | 精品视频免费在线 | 精品一二区 | 亚洲成人av | 四虎影院一区二区 | 亚洲精久久久 | 精品久久久久久久久久久院品网 |