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

Pages: [1]
1
General / Re: Using SFML without any IDE
« on: May 23, 2014, 08:38:41 pm »
Linking statically didn't work :
g++ SFML.cpp -o test -I D:\SFML\include -L D:\SFML\lib -lsfml-graphics-s -lsfml-window-s -lsfml-system-s



But dynamically worked ! (although it needed: "-I D:\SFML\include" as well and wouldn't work without it) :
g++ SFML.cpp -o test -I D:\SFML\include -L D:\SFML\lib -lsfml-graphics -lsfml-window -lsfml-system



It required these 2 files from MinGW bin folder:
libgcc_s_dw2-1.dll
libstdc++-6.dll
as well as dll files from SFML\bin folder

2
General / Re: Using SFML without any IDE
« on: May 22, 2014, 01:53:44 am »
Can't you just tell the command for this situation? but I guess It's better If I list what I've tried, maybe that'll clearify what is it that I'm looking for:

Keep in mind I know nothing about compiling layout and structure, linker, preprocessing, object files etc.

g++ SFML.cpp -o test



g++ SMFL.cpp -o test -I D:\SFML\include


g++ SFML.cpp -o test -I D:\SFML\include -lD:\SFML\lib\libsfml-graphics.a -lD:\SFML\lib\libsfml-window.a -lD:\SFML\lib\libsfml-system.a


g++ SFML.cpp -o test -I D:\SFML\include -L D:\SFML\lib -lD:\SFML\lib\libsfml-graphics.a -lD:\SFML\lib\libsfml-window.a -lD:\SFML\lib\libsfml-system.a

3
General / Using SFML without any IDE
« on: May 21, 2014, 11:39:01 pm »
My question is that with this compiler that I have which I've downloaded it long time ago and I remember just the downloading it was a nightmare, can I compile this piece of code from SFML & Code::blocks tutorial and If yes what the heck is the compile command?

If you need to know more about the compiler tell me what is it so I can get it for you, I don't know much about this sort of stuff.

It'll save me from embarrassment and you from wasting your time, If I don't mention the things I've tried and didn't work out.

Compiler info:



code from SFML and Code::Blocks Tutorial:


address and version of SFML:

Pages: [1]
anything