I’m not able to run the starting code of the course, after I included the raylib.h file to my axe_game.cpp:
MY CODE:
#include <stdio.h>
#include "raylib.h"
int main(){
printf("Leo");
InitWindow(350, 200, "Leo");
}
TERMINAL OUTPUT (when i try to debug and run):
Starting build…
/usr/bin/g++ -fdiagnostics-color=always -g /home/hala/Documenti/GitHub/axe_game/main.cpp -o /home/hala/Documenti/GitHub/axe_game/main
/usr/bin/ld: /tmp/cciViunJ.o: in function main': /home/hala/Documenti/GitHub/axe_game/main.cpp:6:(.text+0x31): undefined reference to
InitWindow’
collect2: error: ld returned 1 exit status
Build finished with error(s).
- The terminal process failed to launch (exit code: -1).
- Terminal will be reused by tasks, press any key to close it.
I tryed several things, but this issue remains