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 - burton

Pages: [1]
1
C / Linker problems; mingw gcc, Windows
« on: February 02, 2010, 08:06:09 pm »
Oh dear, I should have noticed. :)

Thanks!

2
C / Linker problems; mingw gcc, Windows
« on: February 02, 2010, 06:43:17 pm »
But that's the thing: I've installed them to /mingw/lib/

I put the .a files to lib, .dll files to bin and include folder to include.

edit.
Code: [Select]
gcc -c sfml.c
gcc -o sfml.exe sfml.o -Lc:\user\downloads\SFML-1.5\CSFML\lib\mingw\ -lsfml-graphics -lsfml-window -lsfml-system

gives me the same errors.

3
C / Linker problems; mingw gcc, Windows
« on: February 02, 2010, 03:19:29 pm »
Hi, everyone.

I was compiling my very first C code using this multimedia library, but instead of seeing an image of a muppet on the screen, my compiler gave me this error:
Code: [Select]
C:\user\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\
ld.exe: cannot find -lsfml-graphics
collect2: ld returned 1 exit status


My compiler of choice is mingw's gcc. I'm running Windows XP.

The command line:
Code: [Select]
C:\user\tests>gcc sfml.c -o sfml.exe -lsfml-graphics -lsfml-window -lsfml-system

Pages: [1]