Help with Visual Studio

Hi, I’ve got a problem a tad unrelated to the course, but I thought to ask here since the issue came up when working for the course.

For some reason my Visual Studio just decided to implode on itself… Basically all of my project files plus the raylib files themselves seem to be having errors… it might be on other files as well but haven’t checked all the errors since I have like 190 of them… All of these just appeared out of nowhere while working on the project (not the first time that Visual Studio decides to be difficult…) All of my addons are up to date and working. Here’s a screenshot from one of the header files :

Out of curiosity, does the code compile? There’s a difference between errors in Intellisense and compilation errors.

I actually tried that as well because I remember it helping during one of the UE courses, but here it doesn’t actually help, it just throws this error at the end:


I dunno why Visual Studio Code is so finicky, I just ended up using Visual Studio 2022 for some of the other courses because it seems less error prone, it’s just slower and the intellisense doesn’t seem as responsive.

There should be more to that error code in that output window that can help explain what’s going on.


This is the error from Output, very weird since the timestamp makes it look like does the change every time the compiler is ran? I can guess what that means but I have no idea what causes it do that…

So, any ideas? Never figured it out myself.

Not with the information you’re giving me. I really need to see more than that. (error 2 can mean a lot of things).

To give you an example, this is the type of output I’m looking for (I intentionally introduced an error to get this)

Oh, you wanted the output from terminal, not output from output lol… Well the error list quite long with so many errors, so it’s kinda hard to include it all here.

   82 | using std::copysign;
      |            ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:83:12: error: using-declaration for non-member at class scope
   83 | using std::erf;
      |            ^~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:84:12: error: using-declaration for non-member at class scope
   84 | using std::erfc;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:85:12: error: using-declaration for non-member at class scope
   85 | using std::exp2;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:86:12: error: using-declaration for non-member at class scope
   86 | using std::expm1;
      |            ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:87:12: error: using-declaration for non-member at class scope
   87 | using std::fdim;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:88:12: error: using-declaration for non-member at class scope
   88 | using std::fma;
      |            ^~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:89:12: error: using-declaration for non-member at class scope
   89 | using std::fmax;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:90:12: error: using-declaration for non-member at class scope
   90 | using std::fmin;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:91:12: error: using-declaration for non-member at class scope
   91 | using std::hypot;
      |            ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:92:12: error: using-declaration for non-member at class scope
   92 | using std::ilogb;
      |            ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:93:12: error: using-declaration for non-member at class scope
   93 | using std::lgamma;
      |            ^~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:94:12: error: using-declaration for non-member at class scope
   94 | using std::llrint;
      |            ^~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:95:12: error: using-declaration for non-member at class scope
   95 | using std::llround;
      |            ^~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:96:12: error: using-declaration for non-member at class scope
   96 | using std::log1p;
      |            ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:97:12: error: using-declaration for non-member at class scope
   97 | using std::log2;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:98:12: error: using-declaration for non-member at class scope
   98 | using std::logb;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:99:12: error: using-declaration for non-member at class scope
   99 | using std::lrint;
      |            ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:100:12: error: using-declaration for non-member at class scope
  100 | using std::lround;
      |            ^~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:101:12: error: using-declaration for non-member at class scope
  101 | using std::nearbyint;
      |            ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:102:12: error: using-declaration for non-member at class scope
  102 | using std::nextafter;
      |            ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:103:12: error: using-declaration for non-member at class scope
  103 | using std::nexttoward;
      |            ^~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:104:12: error: using-declaration for non-member at class scope
  104 | using std::remainder;
      |            ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:105:12: error: using-declaration for non-member at class scope
  105 | using std::remquo;
      |            ^~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:106:12: error: using-declaration for non-member at class scope
  106 | using std::rint;
      |            ^~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:107:12: error: using-declaration for non-member at class scope
  107 | using std::round;
      |            ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:108:12: error: using-declaration for non-member at class scope
  108 | using std::scalbln;
      |            ^~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:109:12: error: using-declaration for non-member at class scope
  109 | using std::scalbn;
      |            ^~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:110:12: error: using-declaration for non-member at class scope
  110 | using std::tgamma;
      |            ^~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\math.h:111:12: error: using-declaration for non-member at class scope
  111 | using std::trunc;
      |            ^~~~~
Goblin.cpp:4:2: error: cannot define member function 'BaseCharacter::Goblin::Goblin' within 'BaseCharacter'
    4 |  Goblin::Goblin(Vector2 Pos, Texture2D idle_texture, Texture2D run_texture)
      |  ^~~~~~
Goblin.cpp:18:6: error: cannot define member function 'BaseCharacter::Goblin::Tick' within 'BaseCharacter'
   18 | void Goblin::Tick(float DeltaTime)
      |      ^~~~~~
Goblin.cpp:32:9: error: cannot define member function 'BaseCharacter::Goblin::GetScreenPos' within 'BaseCharacter'
   32 | Vector2 Goblin::GetScreenPos()
      |         ^~~~~~
Goblin.cpp:35:2: error: expected '}' at end of input
   35 | }
      |  ^
BaseCharacter.h:6:1: note: to match this '{'
    6 | {
      | ^
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::Wrap(float, float, float)':
C:/raylib/raylib/src/raymath.h:204:40: error: 'floorf' was not declared in this scope
  204 |     float result = value - (max - min)*floorf((value - min)/(max - min));
      |                                        ^~~~~~
C:/raylib/raylib/src/raymath.h: In member function 'int BaseCharacter::FloatEquals(float, float)':
C:/raylib/raylib/src/raymath.h:212:19: error: 'fabsf' was not declared in this scope
  212 |     int result = (fabsf(x - y)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(x), fabsf(y))));
      |                   ^~~~~
C:/raylib/raylib/src/raymath.h:212:57: error: 'fmaxf' was not declared in this scope
  212 |     int result = (fabsf(x - y)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(x), fabsf(y))));
      |                                                         ^~~~~
C:/raylib/raylib/src/raymath.h:212:45: error: 'fmaxf' was not declared in this scope
  212 |     int result = (fabsf(x - y)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(x), fabsf(y))));
      |                                             ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::Vector2Length(Vector2)':
C:/raylib/raylib/src/raymath.h:272:20: error: 'sqrtf' was not declared in this scope
  272 |     float result = sqrtf((v.x*v.x) + (v.y*v.y));
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::Vector2Distance(Vector2, Vector2)':
C:/raylib/raylib/src/raymath.h:296:20: error: 'sqrtf' was not declared in this scope
  296 |     float result = sqrtf((v1.x - v2.x)*(v1.x - v2.x) + (v1.y - v2.y)*(v1.y - v2.y));
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::Vector2Angle(Vector2, Vector2)':
C:/raylib/raylib/src/raymath.h:312:20: error: 'atan2f' was not declared in this scope
  312 |     float result = atan2f(v2.y, v2.x) - atan2f(v1.y, v1.x);
      |                    ^~~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector2 BaseCharacter::Vector2Normalize(Vector2)':
C:/raylib/raylib/src/raymath.h:353:20: error: 'sqrtf' was not declared in this scope
  353 |     float length = sqrtf((v.x*v.x) + (v.y*v.y));
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector2 BaseCharacter::Vector2Rotate(Vector2, float)':
C:/raylib/raylib/src/raymath.h:409:20: error: 'cosf' was not declared in this scope
  409 |     float cosres = cosf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h:410:20: error: 'sinf' was not declared in this scope
  410 |     float sinres = sinf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector2 BaseCharacter::Vector2MoveTowards(Vector2, Vector2, float)':
C:/raylib/raylib/src/raymath.h:429:18: error: 'sqrtf' was not declared in this scope
  429 |     float dist = sqrtf(value);
      |                  ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector2 BaseCharacter::Vector2Clamp(Vector2, Vector2, Vector2)':
C:/raylib/raylib/src/raymath.h:451:29: error: 'fmaxf' was not declared in this scope; did you mean 'max'?
  451 |     result.x = fminf(max.x, fmaxf(min.x, v.x));
      |                             ^~~~~
      |                             max
C:/raylib/raylib/src/raymath.h:451:16: error: 'fminf' was not declared in this scope; did you mean 'min'?
  451 |     result.x = fminf(max.x, fmaxf(min.x, v.x));
      |                ^~~~~
      |                min
C:/raylib/raylib/src/raymath.h: In member function 'Vector2 BaseCharacter::Vector2ClampValue(Vector2, float, float)':
C:/raylib/raylib/src/raymath.h:465:18: error: 'sqrtf' was not declared in this scope
  465 |         length = sqrtf(length);
      |                  ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'int BaseCharacter::Vector2Equals(Vector2, Vector2)':
C:/raylib/raylib/src/raymath.h:487:20: error: 'fabsf' was not declared in this scope
  487 |     int result = ((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h:487:62: error: 'fmaxf' was not declared in this scope
  487 |     int result = ((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                                                              ^~~~~
C:/raylib/raylib/src/raymath.h:487:50: error: 'fmaxf' was not declared in this scope
  487 |     int result = ((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                                                  ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3Perpendicular(Vector3)':
C:/raylib/raylib/src/raymath.h:574:25: error: 'fabs' was not declared in this scope
  574 |     float min = (float) fabs(v.x);
      |                         ^~~~
C:/raylib/raylib/src/raymath.h:577:9: error: 'fabsf' was not declared in this scope
  577 |     if (fabsf(v.y) < min)
      |         ^~~~~
C:/raylib/raylib/src/raymath.h:584:9: error: 'fabsf' was not declared in this scope
  584 |     if (fabsf(v.z) < min)
      |         ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::Vector3Length(Vector3)':
C:/raylib/raylib/src/raymath.h:601:20: error: 'sqrtf' was not declared in this scope
  601 |     float result = sqrtf(v.x*v.x + v.y*v.y + v.z*v.z);
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::Vector3Distance(Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:630:14: error: 'sqrtf' was not declared in this scope
  630 |     result = sqrtf(dx*dx + dy*dy + dz*dz);
      |              ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::Vector3Angle(Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:654:17: error: 'sqrtf' was not declared in this scope
  654 |     float len = sqrtf(cross.x*cross.x + cross.y*cross.y + cross.z*cross.z);
      |                 ^~~~~
C:/raylib/raylib/src/raymath.h:656:14: error: 'atan2f' was not declared in this scope
  656 |     result = atan2f(len, dot);
      |              ^~~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3Normalize(Vector3)':
C:/raylib/raylib/src/raymath.h:682:20: error: 'sqrtf' was not declared in this scope
  682 |     float length = sqrtf(v.x*v.x + v.y*v.y + v.z*v.z);
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'void BaseCharacter::Vector3OrthoNormalize(Vector3*, Vector3*)':
C:/raylib/raylib/src/raymath.h:703:14: error: 'sqrtf' was not declared in this scope
  703 |     length = sqrtf(v.x*v.x + v.y*v.y + v.z*v.z);
      |              ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3RotateByAxisAngle(Vector3, Vector3, float)':
C:/raylib/raylib/src/raymath.h:765:20: error: 'sqrtf' was not declared in this scope
  765 |     float length = sqrtf(axis.x * axis.x + axis.y * axis.y + axis.z * axis.z);
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h:773:15: error: 'sinf' was not declared in this scope
  773 |     float a = sinf(angle);
      |               ^~~~
C:/raylib/raylib/src/raymath.h:777:9: error: 'cosf' was not declared in this scope
  777 |     a = cosf(angle);
      |         ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3Min(Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:843:16: error: 'fminf' was not declared in this scope
  843 |     result.x = fminf(v1.x, v2.x);
      |                ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3Max(Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:855:16: error: 'fmaxf' was not declared in this scope
  855 |     result.x = fmaxf(v1.x, v2.x);
      |                ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3Clamp(Vector3, Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:996:29: error: 'fmaxf' was not declared in this scope; did you mean 'max'?
  996 |     result.x = fminf(max.x, fmaxf(min.x, v.x));
      |                             ^~~~~
      |                             max
C:/raylib/raylib/src/raymath.h:996:16: error: 'fminf' was not declared in this scope; did you mean 'min'?
  996 |     result.x = fminf(max.x, fmaxf(min.x, v.x));
      |                ^~~~~
      |                min
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3ClampValue(Vector3, float, float)':
C:/raylib/raylib/src/raymath.h:1011:18: error: 'sqrtf' was not declared in this scope
 1011 |         length = sqrtf(length);
      |                  ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'int BaseCharacter::Vector3Equals(Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:1035:20: error: 'fabsf' was not declared in this scope
 1035 |     int result = ((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h:1035:62: error: 'fmaxf' was not declared in this scope
 1035 |     int result = ((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                                                              ^~~~~
C:/raylib/raylib/src/raymath.h:1035:50: error: 'fmaxf' was not declared in this scope
 1035 |     int result = ((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                                                  ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::Vector3Refract(Vector3, Vector3, float)':
C:/raylib/raylib/src/raymath.h:1057:13: error: 'sqrtf' was not declared in this scope
 1057 |         d = sqrtf(d);
      |             ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixRotate(Vector3, float)':
C:/raylib/raylib/src/raymath.h:1283:30: error: 'sqrtf' was not declared in this scope
 1283 |         float ilength = 1.0f/sqrtf(lengthSquared);
      |                              ^~~~~
C:/raylib/raylib/src/raymath.h:1289:20: error: 'sinf' was not declared in this scope
 1289 |     float sinres = sinf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h:1290:20: error: 'cosf' was not declared in this scope
 1290 |     float cosres = cosf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixRotateX(float)':
C:/raylib/raylib/src/raymath.h:1325:20: error: 'cosf' was not declared in this scope
 1325 |     float cosres = cosf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h:1326:20: error: 'sinf' was not declared in this scope
 1326 |     float sinres = sinf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixRotateY(float)':
C:/raylib/raylib/src/raymath.h:1345:20: error: 'cosf' was not declared in this scope
 1345 |     float cosres = cosf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h:1346:20: error: 'sinf' was not declared in this scope
 1346 |     float sinres = sinf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixRotateZ(float)':
C:/raylib/raylib/src/raymath.h:1365:20: error: 'cosf' was not declared in this scope
 1365 |     float cosres = cosf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h:1366:20: error: 'sinf' was not declared in this scope
 1366 |     float sinres = sinf(angle);
      |                    ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixRotateXYZ(Vector3)':
C:/raylib/raylib/src/raymath.h:1386:18: error: 'cosf' was not declared in this scope; did you mean 'cosz'?
 1386 |     float cosz = cosf(-angle.z);
      |                  ^~~~
      |                  cosz
C:/raylib/raylib/src/raymath.h:1387:18: error: 'sinf' was not declared in this scope; did you mean 'sinz'?
 1387 |     float sinz = sinf(-angle.z);
      |                  ^~~~
      |                  sinz
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixRotateZYX(Vector3)':
C:/raylib/raylib/src/raymath.h:1414:16: error: 'cosf' was not declared in this scope
 1414 |     float cz = cosf(angle.z);
      |                ^~~~
C:/raylib/raylib/src/raymath.h:1415:16: error: 'sinf' was not declared in this scope
 1415 |     float sz = sinf(angle.z);
      |                ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixPerspective(double, double, double, double)':
C:/raylib/raylib/src/raymath.h:1493:23: error: 'tan' was not declared in this scope
 1493 |     double top = near*tan(fovy*0.5);
      |                       ^~~
C:/raylib/raylib/src/raymath.h: In member function 'Matrix BaseCharacter::MatrixLookAt(Vector3, Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:1556:14: error: 'sqrtf' was not declared in this scope
 1556 |     length = sqrtf(v.x*v.x + v.y*v.y + v.z*v.z);
      |              ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'float BaseCharacter::QuaternionLength(Quaternion)':
C:/raylib/raylib/src/raymath.h:1670:20: error: 'sqrtf' was not declared in this scope
 1670 |     float result = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w);
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Quaternion BaseCharacter::QuaternionNormalize(Quaternion)':
C:/raylib/raylib/src/raymath.h:1680:20: error: 'sqrtf' was not declared in this scope
 1680 |     float length = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w);
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Quaternion BaseCharacter::QuaternionNlerp(Quaternion, Quaternion, float)':
C:/raylib/raylib/src/raymath.h:1775:20: error: 'sqrtf' was not declared in this scope
 1775 |     float length = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w);
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Quaternion BaseCharacter::QuaternionSlerp(Quaternion, Quaternion, float)':
C:/raylib/raylib/src/raymath.h:1800:9: error: 'fabsf' was not declared in this scope
 1800 |     if (fabsf(cosHalfTheta) >= 1.0f) result = q1;
      |         ^~~~~
C:/raylib/raylib/src/raymath.h:1804:27: error: 'acosf' was not declared in this scope
 1804 |         float halfTheta = acosf(cosHalfTheta);
      |                           ^~~~~
C:/raylib/raylib/src/raymath.h:1805:30: error: 'sqrtf' was not declared in this scope
 1805 |         float sinHalfTheta = sqrtf(1.0f - cosHalfTheta*cosHalfTheta);
      |                              ^~~~~
C:/raylib/raylib/src/raymath.h:1816:28: error: 'sinf' was not declared in this scope
 1816 |             float ratioA = sinf((1 - amount)*halfTheta)/sinHalfTheta;
      |                            ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Quaternion BaseCharacter::QuaternionFromVector3ToVector3(Vector3, Vector3)':
C:/raylib/raylib/src/raymath.h:1845:20: error: 'sqrtf' was not declared in this scope
 1845 |     float length = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w);
      |                    ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Quaternion BaseCharacter::QuaternionFromMatrix(Matrix)':
C:/raylib/raylib/src/raymath.h:1887:24: error: 'sqrtf' was not declared in this scope
 1887 |     float biggestVal = sqrtf(fourBiggestSquaredMinus1 + 1.0f) * 0.5f;
      |                        ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Quaternion BaseCharacter::QuaternionFromAxisAngle(Vector3, float)':
C:/raylib/raylib/src/raymath.h:1960:24: error: 'sqrtf' was not declared in this scope
 1960 |     float axisLength = sqrtf(axis.x*axis.x + axis.y*axis.y + axis.z*axis.z);
      |                        ^~~~~
C:/raylib/raylib/src/raymath.h:1978:24: error: 'sinf' was not declared in this scope
 1978 |         float sinres = sinf(angle);
      |                        ^~~~
C:/raylib/raylib/src/raymath.h:1979:24: error: 'cosf' was not declared in this scope
 1979 |         float cosres = cosf(angle);
      |                        ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'void BaseCharacter::QuaternionToAxisAngle(Quaternion, Vector3*, float*)':
C:/raylib/raylib/src/raymath.h:2003:9: error: 'fabsf' was not declared in this scope
 2003 |     if (fabsf(q.w) > 1.0f)
      |         ^~~~~
C:/raylib/raylib/src/raymath.h:2006:24: error: 'sqrtf' was not declared in this scope
 2006 |         float length = sqrtf(q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w);
      |                        ^~~~~
C:/raylib/raylib/src/raymath.h:2017:27: error: 'acosf' was not declared in this scope
 2017 |     float resAngle = 2.0f*acosf(q.w);
      |                           ^~~~~
C:/raylib/raylib/src/raymath.h:2018:17: error: 'sqrtf' was not declared in this scope
 2018 |     float den = sqrtf(1.0f - q.w*q.w);
      |                 ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'Quaternion BaseCharacter::QuaternionFromEuler(float, float, float)':
C:/raylib/raylib/src/raymath.h:2043:16: error: 'cosf' was not declared in this scope
 2043 |     float x0 = cosf(pitch*0.5f);
      |                ^~~~
C:/raylib/raylib/src/raymath.h:2044:16: error: 'sinf' was not declared in this scope
 2044 |     float x1 = sinf(pitch*0.5f);
      |                ^~~~
C:/raylib/raylib/src/raymath.h: In member function 'Vector3 BaseCharacter::QuaternionToEuler(Quaternion)':
C:/raylib/raylib/src/raymath.h:2067:16: error: 'atan2f' was not declared in this scope
 2067 |     result.x = atan2f(x0, x1);
      |                ^~~~~~
C:/raylib/raylib/src/raymath.h:2073:16: error: 'asinf' was not declared in this scope
 2073 |     result.y = asinf(y0);
      |                ^~~~~
C:/raylib/raylib/src/raymath.h: In member function 'int BaseCharacter::QuaternionEquals(Quaternion, Quaternion)':
C:/raylib/raylib/src/raymath.h:2099:21: error: 'fabsf' was not declared in this scope
 2099 |     int result = (((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                     ^~~~~
C:/raylib/raylib/src/raymath.h:2099:63: error: 'fmaxf' was not declared in this scope
 2099 |     int result = (((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                                                               ^~~~~
C:/raylib/raylib/src/raymath.h:2099:51: error: 'fmaxf' was not declared in this scope
 2099 |     int result = (((fabsf(p.x - q.x)) <= (EPSILON*fmaxf(1.0f, fmaxf(fabsf(p.x), fabsf(q.x))))) &&
      |                                                   ^~~~~
Goblin.cpp: At global scope:
Goblin.cpp:35:2: error: expected unqualified-id at end of input
   35 | }
      |  ^
In file included from Prop.cpp:1:
Prop.h: In constructor 'Prop::Prop(Vector2, Texture2D)':
Prop.h:12:13: warning: 'Prop::WorldPos' will be initialized after [-Wreorder]
   12 |     Vector2 WorldPos{};
      |             ^~~~~~~~
Prop.h:11:15: warning:   'Texture2D Prop::Texture' [-Wreorder]
   11 |     Texture2D Texture{};
      |               ^~~~~~~
Prop.cpp:3:1: warning:   when initialized here [-Wreorder]
    3 | Prop::Prop(Vector2 Pos, Texture2D Tex) :
      | ^~~~
In file included from main.cpp:3:
Character.h:7:26: error: invalid use of incomplete type 'class BaseCharacter'
    7 | class Character : public BaseCharacter
      |                          ^~~~~~~~~~~~~
In file included from Character.h:5:
BaseCharacter.h:5:7: note: definition of 'class BaseCharacter' is not complete until the closing brace
    5 | class BaseCharacter
      |       ^~~~~~~~~~~~~
Character.h:11:18: error: 'virtual void BaseCharacter::Character::Tick(float)' marked 'override', but does not override
   11 |     virtual void Tick(float DeltaTime) override;
      |                  ^~~~
Character.h:12:21: error: 'virtual Vector2 BaseCharacter::Character::GetScreenPos()' marked 'override', but does not override
   12 |     virtual Vector2 GetScreenPos() override;
      |                     ^~~~~~~~~~~~
In file included from main.cpp:5:
Goblin.h:6:23: error: invalid use of incomplete type 'class BaseCharacter'
    6 | class Goblin : public BaseCharacter
      |                       ^~~~~~~~~~~~~
BaseCharacter.h:5:7: note: definition of 'class BaseCharacter' is not complete until the closing brace
    5 | class BaseCharacter
      |       ^~~~~~~~~~~~~
Goblin.h:10:18: error: 'virtual void BaseCharacter::Goblin::Tick(float)' marked 'override', but does not override
   10 |     virtual void Tick(float DeltaTime) override;
      |                  ^~~~
Goblin.h:12:21: error: 'virtual Vector2 BaseCharacter::Goblin::GetScreenPos()' marked 'override', but does not override
   12 |     virtual Vector2 GetScreenPos() override;
      |                     ^~~~~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stringfwd.h:40,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:39,
                 from main.cpp:6:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\memoryfwd.h:50:1: error: expected unqualified-id before 'namespace'
   50 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stringfwd.h:42:1: error: expected unqualified-id before 'namespace'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cwchar:44,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\postypes.h:40,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\char_traits.h:39,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:40:
c:\raylib\w64devkit\i686-w64-mingw32\include\wchar.h:29:8: error: expected unqualified-id before string constant
   29 | extern "C" {
      |        ^~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\wchar.h:1561:
c:\raylib\w64devkit\i686-w64-mingw32\include\sec_api\wchar_s.h:21:8: error: expected unqualified-id before string constant
   21 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cwchar:62:1: error: expected unqualified-id before 'namespace'
   62 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cwchar:135:8: error: expected unqualified-id before string constant
  135 | extern "C++"
      |        ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cwchar:244:1: error: expected unqualified-id before 'namespace'
  244 | namespace __gnu_cxx
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cwchar:265:1: error: expected unqualified-id before 'namespace'
  265 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cwchar:280:1: error: expected unqualified-id before 'namespace'
  280 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\postypes.h:42:1: error: expected unqualified-id before 'namespace'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\char_traits.h:42:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\type_traits:40:1: error: expected unqualified-id before 'namespace'
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\char_traits.h:53:1: error: expected unqualified-id before 'namespace'
   53 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\char_traits.h:303:1: error: expected unqualified-id before 'namespace'
  303 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\stddef.h:1,
                 from c:\raylib\w64devkit\i686-w64-mingw32\include\stdint.h:32,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\stdint.h:9,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cstdint:41,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\char_traits.h:731:
c:\raylib\w64devkit\i686-w64-mingw32\include\stddef.h:13:8: error: expected unqualified-id before string constant
   13 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cstdint:44:1: error: expected unqualified-id before 'namespace'
   44 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\char_traits.h:733:1: error: expected unqualified-id before 'namespace'
  733 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\new:41,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\new_allocator.h:34,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\c++allocator.h:33,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\allocator.h:46,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:41:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\exception.h:40:8: error: expected unqualified-id before string constant
   40 | extern "C++" {
      |        ^~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\new:45:8: error: expected unqualified-id before string constant
   45 | extern "C++" {
      |        ^~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\new_allocator.h:35:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\functexcept.h:42:1: error: expected unqualified-id before 'namespace'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\new_allocator.h:36:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\move.h:38:1: error: expected unqualified-id before 'namespace'
   38 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\move.h:59:1: error: expected unqualified-id before 'namespace'
   59 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\new_allocator.h:41:1: error: expected unqualified-id before 'namespace'
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\c++allocator.h:36:1: error: expected unqualified-id before 'namespace'
   36 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\allocator.h:54:1: error: expected unqualified-id before 'namespace'
   54 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\locale.h:12,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\clocale:42,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\c++locale.h:41,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\localefwd.h:40,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:43:
c:\raylib\w64devkit\i686-w64-mingw32\include\stdio.h:23:8: error: expected unqualified-id before string constant
   23 | extern "C" {
      |        ^~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\stdio.h:1572:
c:\raylib\w64devkit\i686-w64-mingw32\include\sec_api\stdio_s.h:21:8: error: expected unqualified-id before string constant
   21 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\i686-w64-mingw32\include\locale.h:18:8: error: expected unqualified-id before string constant
   18 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\clocale:51:1: error: expected unqualified-id before 'namespace'
   51 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\c++locale.h:45:1: error: expected unqualified-id before 'namespace'
   45 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\localefwd.h:41:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\iosfwd:42:1: error: expected unqualified-id before 'namespace'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cctype:42,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\localefwd.h:42:
c:\raylib\w64devkit\i686-w64-mingw32\include\ctype.h:12:8: error: expected unqualified-id before string constant
   12 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cctype:62:1: error: expected unqualified-id before 'namespace'
   62 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cctype:85:1: error: expected unqualified-id before 'namespace'
   85 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\localefwd.h:44:1: error: expected unqualified-id before 'namespace'
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\ostream_insert.h:36,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:44:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\cxxabi_forced.h:39:1: error: expected unqualified-id before 'namespace'
   39 | namespace __cxxabiv1
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\ostream_insert.h:39:1: error: expected unqualified-id before 'namespace'
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:45:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_iterator_base_types.h:74:1: error: expected unqualified-id before 'namespace'
   74 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:46:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_iterator_base_funcs.h:67:1: error: expected unqualified-id before 'namespace'
   67 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_iterator.h:67,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:47:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\ptr_traits.h:46:1: error: expected unqualified-id before 'namespace'
   46 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_iterator.h:88:1: error: expected unqualified-id before 'namespace'
   88 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_iterator.h:1031:1: error: expected unqualified-id before 'namespace'
 1031 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_iterator.h:1346:1: error: expected unqualified-id before 'namespace'
 1346 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:48:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_function.h:63:1: error: expected unqualified-id before 'namespace'
   63 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_function.h:1438:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\backward\binders.h:63:1: error: expected unqualified-id before 'namespace'
   63 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:49:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\numeric_traits.h:37:1: error: expected unqualified-id before 'namespace'
   37 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_pair.h:62,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_algobase.h:64,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:50:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\utility.h:43:1: error: expected unqualified-id before 'namespace'
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_pair.h:69:1: error: expected unqualified-id before 'namespace'
   69 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_algobase.h:69:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\debug\debug.h:48:1: error: expected unqualified-id before 'namespace'
   48 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\debug\debug.h:56:1: error: expected unqualified-id before 'namespace'
   56 | namespace __gnu_debug
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_algobase.h:71:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\predefined_ops.h:35:1: error: expected unqualified-id before 'namespace'
   35 | namespace __gnu_cxx
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_algobase.h:79:1: error: expected unqualified-id before 'namespace'
   79 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\refwrap.h:38,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:51:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\invoke.h:42:1: error: expected unqualified-id before 'namespace'
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\refwrap.h:41:1: error: expected unqualified-id before 'namespace'
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\range_access.h:36,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:52:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\initializer_list:43:1: error: expected unqualified-id before 'namespace'
   43 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\range_access.h:40:1: error: expected unqualified-id before 'namespace'
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\process.h:10,
                 from c:\raylib\w64devkit\i686-w64-mingw32\include\pthread.h:66,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:35,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr.h:148,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\atomicity.h:35,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:39,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:53:
c:\raylib\w64devkit\i686-w64-mingw32\include\corecrt_startup.h:11:8: error: expected unqualified-id before string constant
   11 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\i686-w64-mingw32\include\process.h:17:8: error: expected unqualified-id before string constant
   17 | extern "C" {
      |        ^~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\pthread.h:68:
c:\raylib\w64devkit\i686-w64-mingw32\include\signal.h:13:8: error: expected unqualified-id before string constant

There’s most of the log from what I gather it’s something to do with intellisense not using the x86 version for some unknown reason, but I can’t find a way to change it either.

   13 | extern "C" {
      |        ^~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\time.h:25,
                 from c:\raylib\w64devkit\i686-w64-mingw32\include\pthread.h:69:
c:\raylib\w64devkit\i686-w64-mingw32\include\sys\timeb.h:18:8: error: expected unqualified-id before string constant
   18 | extern "C" {
      |        ^~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\sys\timeb.h:135:
c:\raylib\w64devkit\i686-w64-mingw32\include\sec_api\sys\timeb_s.h:13:8: error: expected unqualified-id before string constant
   13 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\i686-w64-mingw32\include\time.h:30:8: error: expected unqualified-id before string constant
   30 | extern "C" {
      |        ^~~
In file included from c:\raylib\w64devkit\i686-w64-mingw32\include\time.h:324:
c:\raylib\w64devkit\i686-w64-mingw32\include\pthread_time.h:78:8: error: expected unqualified-id before string constant
   78 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\i686-w64-mingw32\include\pthread.h:76:8: error: expected unqualified-id before string constant
   76 | extern "C" {
      |        ^~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:47:9: error: 'pthread_t' does not name a type; did you mean '_threadid'?
   47 | typedef pthread_t __gthread_t;
      |         ^~~~~~~~~
      |         _threadid
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:48:9: error: 'pthread_key_t' does not name a type
   48 | typedef pthread_key_t __gthread_key_t;
      |         ^~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:49:9: error: 'pthread_once_t' does not name a type
   49 | typedef pthread_once_t __gthread_once_t;
      |         ^~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:50:9: error: 'pthread_mutex_t' does not name a type
   50 | typedef pthread_mutex_t __gthread_mutex_t;
      |         ^~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:51:9: error: 'pthread_mutex_t' does not name a type
   51 | typedef pthread_mutex_t __gthread_recursive_mutex_t;
      |         ^~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:52:9: error: 'pthread_cond_t' does not name a type
   52 | typedef pthread_cond_t __gthread_cond_t;
      |         ^~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:660:19: error: '__gthread_t' has not been declared
  660 | __gthread_create (__gthread_t *__threadid, void *(*__func) (void*),
      |                   ^~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:667:17: error: '__gthread_t' has not been declared
  667 | __gthread_join (__gthread_t __threadid, void **__value_ptr)
      |                 ^~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:673:19: error: '__gthread_t' has not been declared
  673 | __gthread_detach (__gthread_t __threadid)
      |                   ^~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:679:18: error: '__gthread_t' has not been declared
  679 | __gthread_equal (__gthread_t __t1, __gthread_t __t2)
      |                  ^~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:679:36: error: '__gthread_t' has not been declared
  679 | __gthread_equal (__gthread_t __t1, __gthread_t __t2)
      |                                    ^~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:684:15: error: '__gthread_t' does not name a type; did you mean '_threadid'?
  684 | static inline __gthread_t
      |               ^~~~~~~~~~~
      |               _threadid
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:697:17: error: '__gthread_once_t' has not been declared
  697 | __gthread_once (__gthread_once_t *__once, void (*__func) (void))
      |                 ^~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:706:23: error: '__gthread_key_t' has not been declared
  706 | __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *))
      |                       ^~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:712:23: error: '__gthread_key_t' has not been declared
  712 | __gthread_key_delete (__gthread_key_t __key)
      |                       ^~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:718:24: error: '__gthread_key_t' has not been declared
  718 | __gthread_getspecific (__gthread_key_t __key)
      |                        ^~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:724:24: error: '__gthread_key_t' has not been declared
  724 | __gthread_setspecific (__gthread_key_t __key, const void *__ptr)
      |                        ^~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:730:32: error: '__gthread_mutex_t' has not been declared
  730 | __gthread_mutex_init_function (__gthread_mutex_t *__mutex)
      |                                ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:737:26: error: '__gthread_mutex_t' has not been declared
  737 | __gthread_mutex_destroy (__gthread_mutex_t *__mutex)
      |                          ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:746:23: error: '__gthread_mutex_t' has not been declared
  746 | __gthread_mutex_lock (__gthread_mutex_t *__mutex)
      |                       ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:755:26: error: '__gthread_mutex_t' has not been declared
  755 | __gthread_mutex_trylock (__gthread_mutex_t *__mutex)
      |                          ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:765:28: error: '__gthread_mutex_t' has not been declared
  765 | __gthread_mutex_timedlock (__gthread_mutex_t *__mutex,
      |                            ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:776:25: error: '__gthread_mutex_t' has not been declared
  776 | __gthread_mutex_unlock (__gthread_mutex_t *__mutex)
      |                         ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:787:42: error: '__gthread_recursive_mutex_t' has not been declared
  787 | __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *__mutex)
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:809:33: error: '__gthread_recursive_mutex_t' has not been declared
  809 | __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex)
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:815:36: error: '__gthread_recursive_mutex_t' has not been declared
  815 | __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex)
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:822:38: error: '__gthread_recursive_mutex_t' has not been declared
  822 | __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex,
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:830:35: error: '__gthread_recursive_mutex_t' has not been declared
  830 | __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex)
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:836:36: error: '__gthread_recursive_mutex_t' has not been declared
  836 | __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex)
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:851:27: error: '__gthread_cond_t' has not been declared
  851 | __gthread_cond_broadcast (__gthread_cond_t *__cond)
      |                           ^~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:857:24: error: '__gthread_cond_t' has not been declared
  857 | __gthread_cond_signal (__gthread_cond_t *__cond)
      |                        ^~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:863:22: error: '__gthread_cond_t' has not been declared
  863 | __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex)
      |                      ^~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:863:48: error: '__gthread_mutex_t' has not been declared
  863 | __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex)
      |                                                ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:869:27: error: '__gthread_cond_t' has not been declared
  869 | __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex,
      |                           ^~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:869:53: error: '__gthread_mutex_t' has not been declared
  869 | __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex,
      |                                                     ^~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:876:32: error: '__gthread_cond_t' has not been declared
  876 | __gthread_cond_wait_recursive (__gthread_cond_t *__cond,
      |                                ^~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:877:32: error: '__gthread_recursive_mutex_t' has not been declared
  877 |                                __gthread_recursive_mutex_t *__mutex)
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:883:25: error: '__gthread_cond_t' has not been declared
  883 | __gthread_cond_destroy (__gthread_cond_t* __cond)
      |                         ^~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\atomicity.h:41:1: error: expected unqualified-id before 'namespace'
   41 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\alloc_traits.h:33,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\alloc_traits.h:34,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:40:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\stl_construct.h:73:1: error: expected unqualified-id before 'namespace'
   73 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\alloc_traits.h:41:1: error: expected unqualified-id before 'namespace'
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\alloc_traits.h:39:1: error: expected unqualified-id before 'namespace'
   39 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:54:1: error: expected unqualified-id before 'namespace'
   54 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:3389:1: error: expected unqualified-id before 'namespace'
 3389 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\string_conversions.h:41,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:3960:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cstdlib:121:8: error: expected unqualified-id before string constant
  121 | extern "C++"
      |        ^~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\string_conversions.h:43:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cstdio:96:1: error: expected unqualified-id before 'namespace'
   96 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cstdio:157:1: error: expected unqualified-id before 'namespace'
  157 | namespace __gnu_cxx
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\cstdio:183:1: error: expected unqualified-id before 'namespace'
  183 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\ext\string_conversions.h:46:1: error: expected unqualified-id before 'namespace'
   46 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:3961:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\charconv.h:39:1: error: expected unqualified-id before 'namespace'
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:3963:1: error: expected unqualified-id before 'namespace'
 3963 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\functional_hash.h:36,
                 from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:4224:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\hash_bytes.h:37:1: error: expected unqualified-id before 'namespace'
   37 | namespace std
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\functional_hash.h:38:1: error: expected unqualified-id before 'namespace'
   38 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.h:4226:1: error: expected unqualified-id before 'namespace'
 4226 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
In file included from c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\string:54:
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\bits\basic_string.tcc:46:1: error: expected unqualified-id before 'namespace'
   46 | namespace std _GLIBCXX_VISIBILITY(default)
      | ^~~~~~~~~
main.cpp:112:2: error: expected '}' at end of input
  112 | }
      |  ^
BaseCharacter.h:6:1: note: to match this '{'
    6 | {
      | ^
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_create(int*, void* (*)(void*), void*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:663:10: error: 'pthread_create' was not declared in this scope; did you mean '__gthread_create'?
  663 |   return __gthrw_(pthread_create) (__threadid, NULL, __func, __args);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_join(int, void**)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:669:10: error: 'pthread_join' was not declared in this scope; did you mean '__gthread_join'?
  669 |   return __gthrw_(pthread_join) (__threadid, __value_ptr);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_detach(int)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:675:10: error: 'pthread_detach' was not declared in this scope; did you mean '__gthread_detach'?
  675 |   return __gthrw_(pthread_detach) (__threadid);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_equal(int, int)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:681:10: error: 'pthread_equal' was not declared in this scope; did you mean '__gthread_equal'?
  681 |   return __gthrw_(pthread_equal) (__t1, __t2);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_yield()':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:693:10: error: 'sched_yield' was not declared in this scope
  693 |   return __gthrw_(sched_yield) ();
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_once(int*, void (*)())':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:700:12: error: 'pthread_once' was not declared in this scope; did you mean '__gthread_once'?
  700 |     return __gthrw_(pthread_once) (__once, __func);
      |            ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_key_create(int*, void (*)(void*))':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:708:10: error: 'pthread_key_create' was not declared in this scope; did you mean '__gthread_key_create'?
  708 |   return __gthrw_(pthread_key_create) (__key, __dtor);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_key_delete(int)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:714:10: error: 'pthread_key_delete' was not declared in this scope; did you mean '__gthread_key_delete'?
  714 |   return __gthrw_(pthread_key_delete) (__key);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static void* BaseCharacter::__gthread_getspecific(int)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:720:10: error: 'pthread_getspecific' was not declared in this scope; did you mean '__gthread_getspecific'?
  720 |   return __gthrw_(pthread_getspecific) (__key);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_setspecific(int, const void*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:726:10: error: 'pthread_setspecific' was not declared in this scope; did you mean '__gthread_setspecific'?
  726 |   return __gthrw_(pthread_setspecific) (__key, __ptr);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static void BaseCharacter::__gthread_mutex_init_function(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:733:5: error: 'pthread_mutex_init' was not declared in this scope; did you mean '__gthread_mutex_lock'?
  733 |     __gthrw_(pthread_mutex_init) (__mutex, NULL);
      |     ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_mutex_destroy(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:740:12: error: 'pthread_mutex_destroy' was not declared in this scope; did you mean '__gthread_mutex_destroy'?
  740 |     return __gthrw_(pthread_mutex_destroy) (__mutex);
      |            ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_mutex_lock(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:749:12: error: 'pthread_mutex_lock' was not declared in this scope; did you mean '__gthread_mutex_lock'?
  749 |     return __gthrw_(pthread_mutex_lock) (__mutex);
      |            ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_mutex_trylock(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:758:12: error: 'pthread_mutex_trylock' was not declared in this scope; did you mean '__gthread_mutex_trylock'?
  758 |     return __gthrw_(pthread_mutex_trylock) (__mutex);
      |            ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_mutex_timedlock(int*, const __gthread_time_t*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:769:12: error: 'pthread_mutex_timedlock' was not declared in this scope; did you mean '__gthread_mutex_timedlock'?
  769 |     return __gthrw_(pthread_mutex_timedlock) (__mutex, __abs_timeout);
      |            ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_mutex_unlock(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:779:12: error: 'pthread_mutex_unlock' was not declared in this scope; did you mean '__gthread_mutex_unlock'?
  779 |     return __gthrw_(pthread_mutex_unlock) (__mutex);
      |            ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_recursive_mutex_init_function(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:791:7: error: 'pthread_mutexattr_t' was not declared in this scope
  791 |       pthread_mutexattr_t __attr;
      |       ^~~~~~~~~~~~~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:794:48: error: '__attr' was not declared in this scope
  794 |       __r = __gthrw_(pthread_mutexattr_init) (&__attr);
      |                                                ^~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:794:13: error: 'pthread_mutexattr_init' was not declared in this scope
  794 |       __r = __gthrw_(pthread_mutexattr_init) (&__attr);
      |             ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:796:15: error: 'pthread_mutexattr_settype' was not declared in this scope
  796 |         __r = __gthrw_(pthread_mutexattr_settype) (&__attr,
      |               ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:799:15: error: 'pthread_mutex_init' was not declared in this scope; did you mean '__gthread_mutex_lock'?
  799 |         __r = __gthrw_(pthread_mutex_init) (__mutex, &__attr);
      |               ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:801:15: error: 'pthread_mutexattr_destroy' was not declared in this scope; did you mean '__gthread_mutex_destroy'?
  801 |         __r = __gthrw_(pthread_mutexattr_destroy) (&__attr);
      |               ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_cond_broadcast(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:853:10: error: 'pthread_cond_broadcast' was not declared in this scope; did you mean '__gthread_cond_broadcast'?
  853 |   return __gthrw_(pthread_cond_broadcast) (__cond);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_cond_signal(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:859:10: error: 'pthread_cond_signal' was not declared in this scope; did you mean '__gthread_cond_signal'?
  859 |   return __gthrw_(pthread_cond_signal) (__cond);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_cond_wait(int*, int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:865:10: error: 'pthread_cond_wait' was not declared in this scope; did you mean '__gthread_cond_wait'?
  865 |   return __gthrw_(pthread_cond_wait) (__cond, __mutex);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_cond_timedwait(int*, int*, const __gthread_time_t*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:872:10: error: 'pthread_cond_timedwait' was not declared in this scope; did you mean '__gthread_cond_timedwait'?
  872 |   return __gthrw_(pthread_cond_timedwait) (__cond, __mutex, __abs_timeout);
      |          ^~~~~~~~
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h: In static member function 'static int BaseCharacter::__gthread_cond_destroy(int*)':
c:\raylib\w64devkit\lib\gcc\i686-w64-mingw32\12.1.0\include\c++\i686-w64-mingw32\bits\gthr-default.h:885:10: error: 'pthread_cond_destroy' was not declared in this scope; did you mean '__gthread_cond_destroy'?
  885 |   return __gthrw_(pthread_cond_destroy) (__cond);
      |          ^~~~~~~~
main.cpp: In member function 'int BaseCharacter::main()':
main.cpp:32:31: error: expected '}' before 'LoadTexture'
   32 |         Vector2{500.f, 700.f} LoadTexture("characters/slime_idle_spritesheet.png"),
      |                               ^~~~~~~~~~~
main.cpp:31:17: note: to match this '{'
   31 |     Goblin Slime{
      |                 ^
main.cpp:32:31: error: no matching function for call to 'BaseCharacter::Goblin::Goblin(<brace-enclosed initializer list>)'
   32 |         Vector2{500.f, 700.f} LoadTexture("characters/slime_idle_spritesheet.png"),
      |                               ^~~~~~~~~~~
Goblin.h:9:5: note: candidate: 'BaseCharacter::Goblin::Goblin(Vector2, Texture2D, Texture2D)'
    9 |     Goblin(Vector2 Pos, Texture2D idle_texture, Texture2D run_texture);
      |     ^~~~~~
Goblin.h:9:5: note:   candidate expects 3 arguments, 1 provided
Goblin.h:6:7: note: candidate: 'constexpr BaseCharacter::Goblin::Goblin(const BaseCharacter::Goblin&)'
    6 | class Goblin : public BaseCharacter
      |       ^~~~~~
Goblin.h:6:7: note:   no known conversion for argument 1 from 'Vector2' to 'const BaseCharacter::Goblin&'
Goblin.h:6:7: note: candidate: 'constexpr BaseCharacter::Goblin::Goblin(BaseCharacter::Goblin&&)'
Goblin.h:6:7: note:   no known conversion for argument 1 from 'Vector2' to 'BaseCharacter::Goblin&&'
main.cpp:32:31: error: expected ',' or ';' before 'LoadTexture'
   32 |         Vector2{500.f, 700.f} LoadTexture("characters/slime_idle_spritesheet.png"),
      |                               ^~~~~~~~~~~
main.cpp:17:13: warning: unused variable 'MapPos' [-Wunused-variable]
   17 |     Vector2 MapPos{0.0, 0.0};
      |             ^~~~~~
main.cpp:18:17: warning: unused variable 'MapScale' [-Wunused-variable]
   18 |     const float MapScale = 4.0;
      |                 ^~~~~~~~
main.cpp:22:10: warning: unused variable 'Props' [-Wunused-variable]
   22 |     Prop Props[2]{
      |          ^~~~~
main.cpp:31:12: warning: unused variable 'Slime' [-Wunused-variable]
   31 |     Goblin Slime{
      |            ^~~~~
main.cpp:33:60: warning: no return statement in function returning non-void [-Wreturn-type]
   33 |         LoadTexture("characters/slime_run_spritesheet.png")};
      |                                                            ^
main.cpp: At global scope:
main.cpp:112:2: error: expected unqualified-id at end of input
  112 | }
      |  ^
make[1]: *** [Makefile:392: BaseCharacter] Error 1
make[1]: Leaving directory 'E:/GameDev/Top-Down Section'
make: *** [Makefile:388: all] Error 2

 *  The terminal process "C:\raylib\w64devkit\bin\mingw32-make.exe 'RAYLIB_PATH=C:/raylib/raylib', 'PROJECT_NAME=BaseCharacter', 'OBJS=*.cpp', 'BUILD_MODE=DEBUG'" terminated with exit code: 2. 
 *  Terminal will be reused by tasks, press any key to close it. 

Here’s the rest, character limits…

Anything anybody can get from that log? I haven’t figured it out.

Can I see the code in main.cpp and header and cpp file for BaseCharacter? This is looking to be one of those times where the actual error is getting buried from compiler output cause it’s panicking.

(apologies for the late response, I’ve been dealing with a bad infection of late)

Oh, you don’t think it’s the x86 version not being used that was in one of the errors? And that would be some major panicking because it’s on basically every file… Also no worries, stay healthy!

Anywho here’s the code:

#include "BaseCharacter.h"
#include "raymath.h"

BaseCharacter::BaseCharacter()
{

}
void BaseCharacter::UndoMovement()
{
    WorldPos = WorldPosLastFrame;
}

Rectangle BaseCharacter::GetCollisionRec()
{
    return Rectangle{
        GetScreenPos().x,
        GetScreenPos().y,
        Width * Scale,
        Height * Scale
    };

void BaseCharacter::Tick(float DeltaTime)
{    
    WorldPosLastFrame = WorldPos;

    // Update animation frame
    RunningTime += DeltaTime;
    if (RunningTime >= UpdateTime)
    {
        Frame++;
        RunningTime = 0.f;
        if (Frame > MaxFrames)
            Frame = 0;
    }
    if (Vector2Length(Velocity) != 0.0)
    {
        // Set WorldPos = WorldPos + Velocity

        WorldPos = Vector2Add(WorldPos, Vector2Scale(Vector2Normalize(Velocity), Speed));
        Velocity.x < 0.f ? RightLeft = -1.f : RightLeft = 1.f;
        Texture = Run;
    }
    else
    {
        Texture = Idle;
    }

    Velocity = {};

     // Draw the Character
    Rectangle Source{Frame * Width, 0.f, RightLeft * Width, Height};
    Rectangle Dest{GetScreenPos().x, GetScreenPos().y, Scale * Width, Scale * Height};
    DrawTexturePro(Texture, Source, Dest, Vector2{}, 0.f, WHITE);
}
#ifndef BASE_CHARACTER_H
#define BASE_CHARACTER_H
#include "raylib.h"

class BaseCharacter
{
public:
    BaseCharacter();
    Vector2 GetWorldPos() { return WorldPos; }
    void UndoMovement();
    Rectangle GetCollisionRec();
    virtual void Tick(float DeltaTime);
    virtual Vector2 GetScreenPos() = 0;
    bool GetAlive() { return Alive; }
    void SetAlive(bool IsAlive) { Alive = IsAlive; }

protected:
    Texture2D Texture{LoadTexture("characters/knight_idle_spritesheet.png")};
    Texture2D Idle{LoadTexture("characters/knight_idle_spritesheet.png")};
    Texture2D Run{LoadTexture("characters/knight_run_spritesheet.png")};
    Vector2 ScreenPos{};
    Vector2 WorldPos{};
    Vector2 WorldPosLastFrame{};

    // 1 : Facing right, -1 Facing left
    float RightLeft = 1.f;

    // Animation variables
    float RunningTime = 0;
    int Frame = 0;
    int MaxFrames = 6;
    float UpdateTime = 1.f / 12.f;
    float Speed = 4.f;
    float Width = 0;
    float Height = 0;
    float Scale = 4.0f;
    Vector2 Velocity{};

private:
    bool Alive = true;

#endif
#include "raylib.h"
#include "raymath.h"
#include "Character.h"
#include "Prop.h"
#include "Goblin.h"
#include <string>

int main()
{

    int WindowDimensions[2];
    WindowDimensions[0] = 384;
    WindowDimensions[1] = 384;

    InitWindow(WindowDimensions[0], WindowDimensions[1], "Classy Clash");
    Texture2D Map = LoadTexture("nature_tileset/WorldMap.png");
    Vector2 MapPos{0.0, 0.0};
    const float MapScale = 4.0;

    Character Knight{WindowDimensions[0], WindowDimensions[1]};

    Prop Props[2]{
        Prop{Vector2{600.f, 300.f}, LoadTexture("nature_tileset/Rock.png")},
        Prop{Vector2{400.f, 500.f}, LoadTexture("nature_tileset/Log.png")}};

    Goblin GreenGoblin{
        Vector2{800.f, 300.f},
        LoadTexture("characters/goblin_idle_spritesheet.png"),
        LoadTexture("characters/goblin_run_spritesheet.png")};

    Goblin Slime{
        Vector2{500.f, 700.f} LoadTexture("characters/slime_idle_spritesheet.png"),
        LoadTexture("characters/slime_run_spritesheet.png")};

    Goblin *Enemies[]{
        &GreenGoblin,
        &Slime};

    for (auto Goblin : Enemies)
    {
        Goblin->SetTarget(&Knight);
    }

    SetTargetFPS(60);
    while (!WindowShouldClose())
    {
        BeginDrawing();
        ClearBackground(WHITE);

        MapPos = Vector2Scale(Knight.GetWorldPos(), -1.f);

        // Draw the Map
        DrawTextureEx(Map, MapPos, 0.0, MapScale, WHITE);

        for (auto Prop : Props)
        {
            Prop.Render(Knight.GetWorldPos());
        }

        if (!Knight.GetAlive()) // Character is not alive
        {
            DrawText("Game Over!, 55.f, 45.f, 40.f, RED");
            EndDrawing();
            continue;
        }
        else
            (Knight.GetAlive()) // Character is alive
            {
                std::string KnightsHealth = "Health";
                KnightsHealth.append(std::to_string(Knight.GetHealth()), 0, 5);
                DrawText(KnightsHealth.c_str(), 55.f, 45.f, 45, RED);
            }

        Knight.Tick(GetFrameTime());
        // Check map bounds
        if (Knight.GetWorldPos().x < 0.f ||
            Knight.GetWorldPos().y < 0.f ||
            Knight.GetWorldPos().x + WindowDimensions[0] > Map.width * MapScale ||
            Knight.GetWorldPos().y + WindowDimensions[1] > Map.height * MapScale)
        {
            Knight.UndoMovement();
        }
        // Check prop collisions
        for (auto Prop : Props)
        {
            if (CheckCollisionRecs(Prop.GetCollisionRec(Knight.GetWorldPos()), Knight.GetCollionRec()))
            {
                Knight.UndoMovement();
            }
        }

        for (auto Goblin : Enemies)
        {
            Goblin->Tick(GetFrameTime());
        }

        if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON))
        {
            for (auto Goblin : Enemies)
            {
                if (CheckCollisionRecs(Goblin->GetCollisionRec(), Knight.GetWeaponCollisionRec()))
                {
                    Goblin->SetAlive(false);
                }
            }
        }

        EndDrawing();
    }

    CloseWindow();
}

Thanks for the time and effort!

Bump

Apologies for the late reply, I have a couple of notes.

  1. I’m not sure if it was intentional or not, but you’re missing }; at the end of BaseCharacter.h which signifies the end of the class declaration. Should be just before the #endif.

  2. I wouldn’t be able to fully test this code since you made a goblin.h file, assuming note #1 was a copy/paste error then what I’d end up needing is the whole project (which can easily be sent to me by using this form)

  1. Oh, it’s easy to miss something like that when it’s throwing like 900+ errors…
  2. The Goblin.h was just me going ahead with the class naming and didn’t bother to change it, I just followed the course with different naming lol.

It seems now that Visual Studio updated that most of the issues are gone? I swear Visual Studio is just odd… Now that most of the errors are gone I noticed one typo but there still seems to be errors in places where I wouldn’t expect them to be at.

I’ll send the project folder so you can check, I need fresh eyes on this mess lol.

Yup, it helps to have a second set of eyes at times. I’ve come across enough 900+ error avalanches in both VS Code AND Visual Studio to recognize them, the trick really is finding that needle in a haystack.

Looking over your code, it’s just a small series of typos or minor fixes to get your code to compile and run. Left-side is your code, the right is my fix.
Main.cpp


BaseCharacter.cpp

Character.cpp

(If you’re wondering what software I’m using, it’s called BeyondCompare 4)

1 Like

Gee, thanks, would be nice if Intellisense wouldn’t throw a hissyfit like that and give false positives… It looks like most of them went away after the update(?) and most of the issues left were the result of me following trough the course when it was giving those false positives.
Buuuut… Now when I try to run the debug it gives this error:


This project is officially cursed lol.
Thanks a lot though for going over the code!

I’m not seeing any other errors to steer me in a direction but if I had to guess you might not have your project open as the root.

Ok, now it seems to work, no idea why it didn’t yesterday… Thanks for the help!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms