game loops and setting up sfml

Pages: 12
@Disch
That didn't work... i guess it was the .00001% chance, lol. It didn't create anything in the project file...
ERanz: Did you actually compile the libs/dlls? Or did you just use the ones that came with the download?
i did what the instructions said... but that's not working. I honestly have no idea what i'm doing, lol. I don't know what it means to compile the libs/dlls. if it's going through the build then I did that, but that didn't do anything. Just gives me the error with a bunch of 0's
I honestly have no idea what i'm doing, lol. I don't know what it means to compile the libs/dlls. if it's going through the build then I did that


Yes that's exactly what it means. Along with the cpp and h files in that download, there is also a Visual Studio project file. Open that in in VC++ and build SFML. It will produce libs/dlls that will for sure work on your machine.

but that didn't do anything. Just gives me the error with a bunch of 0's


You'll have to be more specific. What error messages are you getting?

Some of the builds will fail unless you have wx or Qt, but you don't care about those. The other projects should build fine.

Once you build it should spit some errors at you, then at the end say something like "Build complete. 6 successful, 2 failed".

Those 6 successful mean that sfml-system.lib, sfml-graphics.lib, etc (along with sfml-system.dll, etc) were all compiled and generated.


EDIT: I actually am finding that quite a few people have difficulty setting SFML up. =(

I thought it was a shortcoming of the lib, but I tried it out and didn't have any trouble with it, so I honestly don't know what you guys keep doing wrong.
Last edited on
the application was unable to start correctly (0xc00000ba).


This is the error that i'm getting... i tried running the program from the project, and when i tried to set it up, I did it through the project properties. I tried to do the build that you suggested, but that doesn't help.

Errors:
Error 1 fatal error C1083: Cannot open precompiled header file: 'Release\sfmlTest.pch': No such file or directory c:\Users\Elias\Desktop\c++ assignments\sfmlTest\sfmlTest\stfmlTest.cpp 3
Error 2 fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory c:\users\elias\desktop\c++ assignments\sfmltest\sfmltest\stfmltest.cpp 3



the second one i tried to include the stdafx.h file because it was saying that it was missing, but then it says it can't open it. I don't know what the first one means at all.

Before I had a successful build on the batch build. This time around i get these errors when trying to build it.
i honestly have no idea what i'm doing wrong and it's annoying, i just want it to be successfully finished.
Sorry I didn't respond yesterday. I've been busy.

I can't really give you any more advice other than what I already said. You must be messing up / skipping a step somewhere.

Maybe we can walk though this together when I get home. What time zone are you in? Do you have an IRC client?

If you can join the IRC channel: http://www.cplusplus.com/forum/lounge/28548/

Then maybe I can do each step with you and make sure you're doing everything right. But it'll have to be after I get home from work (about 6 hours from this posting).

Let me know if you're interested.
sorry that I didn't respond to this, I'm in the eastern time zone. I'll join the IRC channel, and leave it on, so when you get on we can walk through it. Thank you very much Disch
I get out of work at 6, and it's about a 30 min drive home. So hopefully I'll be on IRC by 9:30-9:45 eastern time.

I'll catch you then!
I'm gonna be installing windows 7 pro, right now i have home premium and it's being annoying. with school I get it for free. So it might be better to just wait till that's all done with, and maybe then i won't have issues with the sfml, maybe I will. So basically i'm going to have to start that over from scratch, and hopefully my computer will be much faster and work better.
so no meeting tonight then? =P
most likely no, cuz it's taking awhile to do anything. plus i'm pretty busy with other stuff, so it might have to wait till the weekend... or friday.
Okie Dokie
i can be on tonight disch. Just got a hall meeting tonight at 830 est, but should be done way before 930. I have a new clean install of visual studio 10, i ran the hello world program just to see if it works, and it did. And it's starting from a fresh install of windows, so I will need to download sfml and all of that stuff again, but if things go wrong then i have no idea what it's doing, it would just be annoying at that point, lol.
i actually found it, i tried creating another project and then it was there... it being the property pages after right clicking on the Microsoft.Cpp stuff.

EDIT:
So I was able to get it done for all of them, i believe. It was weird it wouldn't let me do it before.
So will I need to do that other stuff again? I just tried to create another project and it looked like i didn't need to include the stuff because it appeared to be there already.
Last edited on
Topic archived. No new replies allowed.
Pages: 12