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

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

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

問題描述

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

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

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

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 按以下順序查找標題:

Visual Studio looks for headers in this order:

  • 在當前源目錄中.
  • 在項目屬性的附加包含目錄中(項目 -> [項目名稱] 屬性,在 C/C++ | 常規下).
  • 在 Visual Studio C++ 包括目錄下的工具選項項目和解決方案VC++ 目錄.
  • 在新版本的 Visual Studio (2015+) 中,不推薦使用上述選項,并且在 Project PropertiesConfiguration 中提供了默認包含目錄列表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

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

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

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

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

相關文檔推薦

How do I set the icon for my application in visual studio 2008?(如何在 Visual Studio 2008 中為我的應用程序設置圖標?)
Convert CString to const char*(將 CString 轉換為 const char*)
Remove secure warnings (_CRT_SECURE_NO_WARNINGS) from projects by default in Visual Studio(默認情況下,在 Visual Studio 中從項目中刪除安全警告 (_CRT_SECURE_NO_WARNINGS))
How do I start a new CUDA project in Visual Studio 2008?(如何在 Visual Studio 2008 中啟動新的 CUDA 項目?)
Exporting classes containing `std::` objects (vector, map etc.) from a DLL(從 DLL 導出包含 `std::` 對象(向量、映射等)的類)
What are some reasons a Release build would run differently than a Debug build(發布版本與調試版本的運行方式不同的一些原因是什么)
主站蜘蛛池模板: 久草在线青青草 | 国产色在线 | 亚洲精品乱码8久久久久久日本 | 亚洲 中文 欧美 日韩 在线观看 | 日韩一区二区三区在线观看 | www.亚洲免费 | 91麻豆精品国产91久久久资源速度 | 亚洲欧美视频一区 | 久久天堂网 | 国产 日韩 欧美 在线 | 亚洲精品电影在线观看 | 一区二区三区中文字幕 | 天天夜干 | 一本色道精品久久一区二区三区 | av在线免费不卡 | 91就要激情| 国产精品国产a级 | 国产精品一级 | 伊人网国产 | 天天色综网 | 红桃视频一区二区三区免费 | 亚洲一区 中文字幕 | 中文字幕一区在线 | 日日操夜夜摸 | 国产在线精品一区二区三区 | www.精品国产 | 操久久| 久久极品| 婷婷久久五月 | 99久久久无码国产精品 | 福利av在线| 亚洲97 | av黄色免费 | av天天澡天天爽天天av | 国产久视频 | av网址在线| 日本又色又爽又黄的大片 | 国产福利91精品 | 免费观看视频www | 美国av毛片 | 日本久久一区二区三区 |