I'm new to C++ and libraries. Recently I've tried using Raylib. But I can't seem to fix the error below (I'm on a windows device):
collect2.exe: error: ld returned 1 exit status
PS C:\Users\idkbo\OneDrive\Masaüstü\NewScripts\clang\cpp\game> g++ gametest.cpp -I C:\raylib\raylib\src
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\idkbo\AppData\Local\Temp\ccMXZKeE.o:gametest.cpp:(.text+0x30): undefined reference to `InitWindow'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\idkbo\AppData\Local\Temp\ccMXZKeE.o:gametest.cpp:(.text+0x3a): undefined reference to `SetTargetFPS'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\idkbo\AppData\Local\Temp\ccMXZKeE.o:gametest.cpp:(.text+0x41): undefined reference to `BeginDrawing'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\idkbo\AppData\Local\Temp\ccMXZKeE.o:gametest.cpp:(.text+0x69): undefined reference to `ClearBackground'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\idkbo\AppData\Local\Temp\ccMXZKeE.o:gametest.cpp:(.text+0xad): undefined reference to `DrawText'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\idkbo\AppData\Local\Temp\ccMXZKeE.o:gametest.cpp:(.text+0xb2): undefined reference to `EndDrawing'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\idkbo\AppData\Local\Temp\ccMXZKeE.o:gametest.cpp:(.text+0xb7): undefined reference to `WindowShouldClose'
collect2.exe: error: ld returned 1 exit status
How can I solve this?
I searched for some solutions but all of them were in C. I copied the code from Raylib Examples. It's really annoying to have bugs like this since I'm new and I don't understand a single character of what these mean, I'd really appreciate any help!