This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Visual Studio Compilation
jlppc edited this page Nov 12, 2018
·
4 revisions
- Open Visual Studio, then go to File > New > Project from Existing Code...
- Select Visual C++ from the drop down and click Next
- In Project file location, click Browse and then navigate to the directory you cloned the repo into
- Chose a Project name, whatever you like
- In the "Add files to the project from these folders" section, REMOVE the folder that is pre-populated there. We only want to add certain folders.
- Click Add and then select the
src/opmon
directory - Click Add and then select the
src/utils
directory - Click Next
- On the Specify Project Settings screen, don't change anything, and click Next again
- On the Specify Debug Configuration Settings screen, don't change anything, and click Next again
- On the Specify Release Configuration Settings screen, don't change anything, and click Finish
- Go to Project > Re-target Solution and then click OK
- Follow the instructions in this video to properly include and link SFML: SFML Tuto Video
- Note: In one of the final steps, he pastes several dll files. Note that they should be pasted into your top level repo directory, not next to your main.cpp.
- Change
#include "config.hpp"
to#include "../../../config.hpp"
- Add header
#define _CRT_SECURE_NO_WARNINGS
topath.cpp
- Add "4996" to Debug > Properties > C/C++ > Advanced >"Disable Specific Warning"
- In Enums.hpp, use VS's Rename functionality to rename #define IN 0 to #define NOT 0 to avoid a conflict with a macro that VS uses.
- In
main.cpp
, comment out theWinMain
method
(Steps 14-16 adapted from https://github.com/rjphares/OpMon/blob/develop/windowsDebugOpMonv0.13.txt)
By Samurai413x