Error 2

When i try to compile with the “Start Debugging” option, it doesn’t compile and instead throws out this error:

  • Executing task in folder Project2: C:/raylib/w64devkit/bin/mingw32-make.exe RAYLIB_PATH=C:/raylib/raylib PROJECT_NAME=Axe Game OBJS=*.cpp BUILD_MODE=DEBUG

mingw32-make Axe Game
make[1]: Entering directory ‘C:/GameDev/Project2’
g++ -o Axe Game *.cpp -Wall -std=c++14 -D_DEFAULT_SOURCE -Wno-missing-braces -g -O0 C:/raylib/raylib/src/raylib.rc.data -I. -IC:/raylib/raylib/src -IC:/raylib/raylib/src/external -L. -LC:/raylib/raylib/src -LC:/raylib/raylib/src -lraylib -lopengl32 -lgdi32 -lwinmm -DPLATFORM_DESKTOP
C:/raylib/w64devkit/bin/ld.exe: cannot find Game: No such file or directory
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:392: Axe] Error 1
make[1]: Leaving directory ‘C:/GameDev/Project2’
make: *** [Makefile:388: all] Error 2

  • The terminal process “C:\raylib\w64devkit\bin\mingw32-make.exe ‘RAYLIB_PATH=C:/raylib/raylib’, ‘PROJECT_NAME=Axe Game’, ‘OBJS=*.cpp’, ‘BUILD_MODE=DEBUG’” terminated with exit code: 2.

This is the code I used:

#include “raylib.h”

int main()

{

InitWindow(1350, 1200, "I'm a window!");

}

First thing to check, where do you have your CPP file placed in your project?

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

Privacy & Terms