Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DevilArx

Pages: [1]
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

2
C / Error when linking project on CSFML
« on: April 14, 2017, 07:43:46 pm »
When i compile a project, I get this error:

OS: Windows 7

C:\Users\DevilArx\Workspace\Roguelike-study>gcc *.o -L"lib/CSFML/lib" -lcsfml-window-2 -lcsfml-graphics-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

Tell me please how can I fix this?

Pages: [1]