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

Pages: [1] 2
1
General / Can't compile the Window sample
« on: October 12, 2011, 01:02:35 am »
Quote from: "sbroadfoot90"
Do you know the difference between dynamic and static linking?


Well pal, my english is kinda bad, but I know the difference between dynamic and static, but I'm really a beginner developer, I'm kinda confused on how to use stuff, if you know what I mean.  :?

2
General / Can't compile the Window sample
« on: October 11, 2011, 12:48:23 am »
Quote from: "sbroadfoot90"
I think you also need to link to sfml-window seeing as you are using Window


Not it worked well, thanks you both fellows. But returning to the other point of the conversation:

Quote from: "Laurent"
Quote
By the way, If you can answer me, why is the window.exe asking for the DLLs "sfml-window.dll", "sfml-system.dll" and "libgcc_s_dw2-1.dll" if in the previous compiled .exe it just asked for "libsndfile-1.dll" and "openal32.dll"?

Probably because the first one links to dynamically to SFML, while the second one links statically.


I yet couldn't understand how to fix it.  :?

3
General / Can't compile the Window sample
« on: October 10, 2011, 11:47:37 pm »
Quote from: "Laurent"
First, you should link libraries with "xxx" instead of "full/path/libxxx.a".

Add the path to SFML libraries to the linker search directories, and then link to "sfml-system", "sfml-graphics". There's no path to setup for standard libraries, they are in... standard paths. So just link to "glu32" and "opengl32".


So I did, is it alright?


Well, if it is, I'm getting another log error when compiling: http://pastebin.com/3jd5pGzq

4
General / Can't compile the Window sample
« on: October 10, 2011, 11:01:55 pm »
Quote from: "Laurent"
If you use OpenGL you must link to the OpenGL library as well (-lGL).


Aren't you talking about the "libglu32.a"? If you're not, I wasn't linking nothing different before, just the SMFL ones and the "libglu32.a", and it was working well. Sorry if I'm being annoying or stuff like this, I'm really confused over here. But if I'll use the OpenGL library, how should I link it?

5
General discussions / Who Are You? (the obligatory interview thread)
« on: October 10, 2011, 08:13:17 pm »
Well, my name is Telmo Henrique Valverde, but you can call me Telmo. :) I'm a brazilian 15 years old guy that's learning how to program C++. I'm reading some e-books, I don't really have someone to teach me, but some friends and forum guys help me out to solve some problems with code and stuff. I'm trying to develop my own indie game, so I started to use SFML.  :lol:

6
General / Can't compile the Window sample
« on: October 10, 2011, 07:23:38 pm »
Quote from: "Laurent"
Oh my god :shock:

Have you read the tutorial? Files with suffixes such as -d or -s represent a different version of the same library, and have a very specific purpose (-d for debug, -s for static). You must only link to one version of the libraries, according to how you want to link to SFML ;)


Sorry pal, my english is kinda bad so I'm always missing something. xD Now I linked just the main ones, but again I can't compile the code.



I'm receiving the following error log: http://pastebin.com/a1rYC209

7
General / Can't compile the Window sample
« on: October 10, 2011, 05:59:53 pm »
Quote from: "Laurent"
Quote
I'm linking it to all the SFML libraries

What does it mean? Can you show the list of the libraries you link to?


Sure.


8
General / Can't compile the Window sample
« on: October 10, 2011, 05:49:09 pm »
Quote from: "Laurent"
Quote
By the way, If you can answer me, why is the window.exe asking for the DLLs "sfml-window.dll", "sfml-system.dll" and "libgcc_s_dw2-1.dll" if in the previous compiled .exe it just asked for "libsndfile-1.dll" and "openal32.dll"?

Probably because the first one links to dynamically to SFML, while the second one links statically.


Sorry pal, but I'm kinda confused. I'm linking it to all the SFML libraries, what should I do?

9
General / Can't compile the Window sample
« on: October 10, 2011, 05:24:31 pm »
Quote from: "Laurent"
You must link to the GLU library ("-lGLU" with gcc, "glu32.lib" for VC++).


I linked it to the "libglu32.a" file I found in my MinGW directory and it worked well. By the way, If you can answer me, why is the window.exe asking for the DLLs "sfml-window.dll", "sfml-system.dll" and "libgcc_s_dw2-1.dll" if in the previous compiled .exe it just asked for "libsndfile-1.dll" and "openal32.dll"? Sorry my foolery, I'm really just a beginner developer, its the first engine I'm using.

10
General / Can't compile the Window sample
« on: October 10, 2011, 02:41:05 am »
Hey ya fellows, I'm doing some tests with the SFML engine, so I tried to compile some samples with no success. Like when I was trying to compile the Window.cpp I received the following error:

C:\SFML-1.6\samples\window\Window.o:Window.cpp|| undefined reference to `gluPerspective@32'|
||=== Build finished: 1 errors, 0 warnings ===|

If you don't know what sample I'm talking about, its this one: http://pastebin.com/MBTfymnb

11
General / [Solved] Problem installing SFML with Code::Blocks
« on: October 08, 2011, 11:45:09 pm »
Quote from: "Nexus"
You can also link SFML and the g++ runtime statically, then you don't have to provide the DLLs. I think it's the flag -static-libgcc (or -static-libstdc++ for the standard library).

By the way, I wouldn't download DLLs from anywhere, since they may contain malicious code, just as EXE files. Search for the DLL on your computer or get it from GNU, if possible.


I'll check it, thanks for the hint. :) And I downloaded the DLL from a SourceForge mirror, I tested it with an online tool called VirusTotal. You can check file's status in the following link: http://www.virustotal.com/file-scan/report.html?id=b35f2a8f4c8f1833f3cdec20739c58e295758ce22021d03d4335043148bd7610-1318109920

12
General / [Solved] Problem installing SFML with Code::Blocks
« on: October 08, 2011, 11:25:04 pm »
Quote from: "OniLink10"
Again, that's search directories. You still haven't shown us the linker settings.


So there's a misunderstood. xD This setting was blank, I fixed it setting the files from the "lib" folder. Now I'm receiving an DLL error after the compilation, its telling I don't have the sfml-system.dll, I'll see if I can download it.

** EDITED **
I copied all the SFML DLLs I found in the directory to the executable's directory, its asking for "libgcc_s_dw2-1.dll" now.

** EDITED AGAIN **
I downloaded that missing DLL and now its working well, thanks fellows Nexus and OniLink10 for the help. :)
And I did some tests, the program runs well with just two DLLs: libgcc_s_dw2-1.dll and sfml-system.dll.

13
General / [Solved] Problem installing SFML with Code::Blocks
« on: October 08, 2011, 11:17:36 pm »
Quote from: "OniLink10"
Your computer looks... quite broken. You should get that checked out. Also, you didn't show us your linker settings, just your include paths and proof that everything is installed properly.


Dunno what you mean with "quite broken", if you're talking about the screenshot, its full of copied and pasted stuff. x) Well, I downloaded the "SFML-1.6-sdk-windows-mingw.zip" file, extracted it into C:\ and linked stuff to Code::Blocks.  And by the way, if you want to see the Linker tab too:



There are some files in the folder that aren't possible to see in the screenshot, but they're exactly equal I extracted from the file "SFML-1.6-sdk-windows-mingw.zip".

14
General / [Solved] Problem installing SFML with Code::Blocks
« on: October 08, 2011, 10:37:08 pm »
Quote from: "OniLink10"
You aren't linking to SFML's System component.


Hey pal, I'm think I linked everything alright, check it:

15
General / [Solved] Problem installing SFML with Code::Blocks
« on: October 08, 2011, 08:57:25 pm »
Quote from: "Nexus"
Are you compiling for C and not C++? Otherwise, make sure g++ is properly installed and your files have a C++ extension (for example .cpp).


You were right, but now I'm trying to compile a .cpp file I'm getting another error.  :cry: Check this one: http://dl.dropbox.com/u/32400576/sfml2.txt

I have no idea why I'm getting this problem, I think I did everything alright and I copied exactly the same code from the tutorial.

Pages: [1] 2
anything