Cannot compile raylib core or run compiled program.

edited October 17 in raylib: core
Wanted to finish my little game made in this framework.
So, downloading installer, running it and setting up include path in IDE (Eclipse).
As soonest as i started to compile, these errors poped up:

undefined reference to 'InitWindow'

Same for : SetTargetFPS,WindowShouldClose,BeginDraw,EndDraw

Trying to fix this issue i heve tested if compiling will work in configured Notepad++. Yes it compiles but cannot run program.
Compiling core gives these errors:
https://gist.github.com/BlackDiamondPL/41cbfde3d4ed0204e4690dafd7995b6f

Weird, i am using MinGW's includes to compile, but it searches for Cygwin's.

Comments

  • edited October 17
    Removed Cygwin from system path, still same result.
    ccLIDkMp.o:main.cpp:(.text+0x2c): undefined reference to `InitWindow'
    ccLIDkMp.o:main.cpp:(.text+0x38): undefined reference to `SetTargetFPS'
    ccLIDkMp.o:main.cpp:(.text+0x3d): undefined reference to `WindowShouldClose'
    ccLIDkMp.o:main.cpp:(.text+0x4e): undefined reference to `BeginDrawing'
    ccLIDkMp.o:main.cpp:(.text+0x71): undefined reference to `ClearBackground'
    ccLIDkMp.o:main.cpp:(.text+0x7b): undefined reference to `EndDrawing'
    ccLIDkMp.o:main.cpp:(.text+0x8c): undefined reference to `CloseWindow'

    Edit: Ok i can compile core but still udefined references are all over the place
    Edit 2: Undefined references fixed. Now it cannot find core libraries.
  • Hi BlackDiamondPL,

    It seems there is some problem with library linking... Have you tried with Visual Studio project?

    Have you tried downloading latest version from raylib GitHub? Multiple issues have been solved...
  • I don't have Visual Studio, but i have Visual Studio Code, so it's not better. Installed NetBeans. Added include path and the same problem appears. I have updated raylib from Github.
  • And yeah 'Undefined references' are back
Sign In or Register to comment.