Код: Выделить всё
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
Я скопировал код из примеров Raylib.
Подробнее здесь: https://stackoverflow.com/questions/743 ... ile-raylib