OneLoneCoder / CommandLineFPS

A First Person Shooter at the command line? Yup...
599 stars 173 forks source link

Bugs when compiling with MinGW on Windows #18

Open Lizlone opened 2 years ago

Lizlone commented 2 years ago

My environment is Cmake + MinGW on Windows. It reported 2 kinds of bugs: 1.Some functions like sinf(); cosf(); was not declared in this scope. 2.Can not convert 'wchar_t*' to 'LPCSTR' Here are my solutions: 1.Add #include <math.h> to sourse code 2.Change funtion WriteConsoleOutputCharacter() to WriteConsoleOutputCharacterW() at line 279