Add Compile as C Code (/TC) and Preprocessor Definitions

master
Grave 4 年前
父节点
当前提交
cc2ea3bac7
共有 1 个文件被更改,包括 8 次插入3 次删除
  1. +8
    -3
      Create-Visual-Studio-2019-Project.md

+ 8
- 3
Create-Visual-Studio-2019-Project.md

@ -9,9 +9,14 @@
## Creating your own project
* Create **new project > Console App**
* Go to **Project Properties > Configuration Properties > C/C++ > General** and add _...\raylib\src folder_ (contains _.h_ files) to **Additional Include Directories**
* Go to **Configuration Properties > Linker > General** and add _...\raylib\projects\VS2019\bin\x64\Release.DLL_ folder to **Additional Library Directories**
* Go to **Configuration Properties > Linker > Input** and add _raylib.lib_ to **Additional Dependencies**
* Go to **Project > Properties**
* In opened window go to **Configuration Properties > C/C++ > General** and add _...\raylib\src folder_ (contains _.h_ files) to **Additional Include Directories**
* Go to **C/C++ > Preprocessor** and include the following **Preprocessor Definitions** (for Windows platform):
- ` GRAPHICS_API_OPENGL_33`
- ` PLATFORM_DESKTOP`
* Go to **C/C++ > Advanced** and set **Compile As** to **Compile as C Code (/TC)**
* Go to **Linker > General** and add _...\raylib\projects\VS2019\bin\x64\Release.DLL_ folder to **Additional Library Directories**
* Go to **Linker > Input** and add `raylib.lib` to **Additional Dependencies**
* Go to _...\raylib\projects\VS2019\bin\x64\Release.DLL_ folder and copy _raylib.dll_ to your project folder (main .cpp must be in this folder)
## Start coding

正在加载...
取消
保存