1
C / Re: Error when linking project on CSFML
« on: April 14, 2017, 08:07:26 pm »
After changing the order, the errors still remains
C:\Users\DevilArx\Workspace\Roguelike-study>gcc *.o -L"lib/CSFML/lib" -lcsfml-graphics-2 -lcsfml-window-2 -lcsfml-system-2
main.o:main.c:(.text+0x56): undefined reference to `_imp__sfRenderWindow_create'
main.o:main.c:(.text+0x8c): undefined reference to `_imp__sfRenderWindow_close'
main.o:main.c:(.text+0xa2): undefined reference to `_imp__sfRenderWindow_pollEvent'
main.o:main.c:(.text+0xad): undefined reference to `_imp__sfBlack'
main.o:main.c:(.text+0xbf): undefined reference to `_imp__sfRenderWindow_clear'
main.o:main.c:(.text+0xcd): undefined reference to `_imp__sfRenderWindow_display'
main.o:main.c:(.text+0xdb): undefined reference to `_imp__sfRenderWindow_isOpen'
main.o:main.c:(.text+0xed): undefined reference to `_imp__sfRenderWindow_destroy'
collect2.exe: error: ld returned 1 exit status
main.o:main.c:(.text+0x56): undefined reference to `_imp__sfRenderWindow_create'
main.o:main.c:(.text+0x8c): undefined reference to `_imp__sfRenderWindow_close'
main.o:main.c:(.text+0xa2): undefined reference to `_imp__sfRenderWindow_pollEvent'
main.o:main.c:(.text+0xad): undefined reference to `_imp__sfBlack'
main.o:main.c:(.text+0xbf): undefined reference to `_imp__sfRenderWindow_clear'
main.o:main.c:(.text+0xcd): undefined reference to `_imp__sfRenderWindow_display'
main.o:main.c:(.text+0xdb): undefined reference to `_imp__sfRenderWindow_isOpen'
main.o:main.c:(.text+0xed): undefined reference to `_imp__sfRenderWindow_destroy'
collect2.exe: error: ld returned 1 exit status