Note that setting the compiler to C only is not required and may be detrimental

master
Jeffery Myers 4 years ago
parent
commit
4a1cca987f
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      Create-Visual-Studio-2019-Project.md

+ 1
- 0
Create-Visual-Studio-2019-Project.md

@ -20,6 +20,7 @@ https://github.com/raysan5/raylib/wiki/Easy-Raylib-Setup-for-Windows-with-Visual
- ` GRAPHICS_API_OPENGL_33` - ` GRAPHICS_API_OPENGL_33`
- ` PLATFORM_DESKTOP` - ` PLATFORM_DESKTOP`
* Go to **C/C++ > Advanced** and set **Compile As** to **Compile as C Code (/TC)** (if you want to use code from examples) * Go to **C/C++ > Advanced** and set **Compile As** to **Compile as C Code (/TC)** (if you want to use code from examples)
** Note that this step is not required. By default *.c files will compile with C and *.cpp files will compile to C++. If you intend to use C++ or do not want to forcibly restrict yourself to C, do not change this setting.
* Go to **Linker > General** and add `(your_folder_location)\raylib\projects\VS2019\bin\x64\Release.DLL` folder to **Additional Library Directories** * Go to **Linker > General** and add `(your_folder_location)\raylib\projects\VS2019\bin\x64\Release.DLL` folder to **Additional Library Directories**
* Go to **Linker > Input** and add `raylib.lib` and `winmm.lib` to **Additional Dependencies** * Go to **Linker > Input** and add `raylib.lib` and `winmm.lib` to **Additional Dependencies**
* Go to _"(your_folder_location)\raylib\projects\VS2019\bin\x64\Release.DLL"_ folder and copy _**raylib.dll**_ and _**raylib.lib**_ to your project folder. For example, if your project name is "Demo" then copy these files into the folder `(your_folder_location)\Demo\Demo`. * Go to _"(your_folder_location)\raylib\projects\VS2019\bin\x64\Release.DLL"_ folder and copy _**raylib.dll**_ and _**raylib.lib**_ to your project folder. For example, if your project name is "Demo" then copy these files into the folder `(your_folder_location)\Demo\Demo`.

Loading…
Cancel
Save