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

Pages: [1]
1
Window / Issue with linking to main library
« on: August 03, 2009, 06:31:42 pm »
Code: [Select]

int main()
{
   return 1;
}


Either way, I believe I found the problem. When I was making my new project, I forgot to check the "Empty Project" box, and VC2008's precompiled headers seem to prevent sfml-main.lib from doing anything. I'm pretty sure this is the issue, because in the two test projects I made, both just returned, and one had precompiled headers with the other did not. Thanks for the help!

2
Window / Issue with linking to main library
« on: August 03, 2009, 06:25:31 am »
Sorry, I explained that poorly, I meant that main() never starts (I have it set to return instantly, and all I get is a big white window stuck there until I manually close the program).

3
Window / Issue with linking to main library
« on: August 02, 2009, 10:40:06 pm »
All I did was add sfml-main-d.lib to "Additional dependencies" under "Linker -> input". Then, when I compiled and ran the program, it behaved exactly as it had before I linked to it.

4
Window / Issue with linking to main library
« on: August 02, 2009, 10:12:45 pm »
I'm having trouble linking to the SFML main static library in VC2008. I have tried linking to both sfml-main.lib and sfml-main-d.lib, and to my dismay, they do not appear to be overriding WinMain. I also thought maybe I should try including SFML_Main.cpp after linking to the main library, but that didn't work, either (I didn't really expect it to, though).  The window package tutorial says that you should link to the static SFML_Main library, but it would appear that there is no sfml-main-s-d.lib in the VC2008 build. Anyone know where I went wrong?

5
Graphics / Image.LoadFromFile() and general image creation failure
« on: June 28, 2009, 07:21:11 pm »
I did link to the wrong libraries, thanks!

6
Graphics / Image.LoadFromFile() and general image creation failure
« on: June 27, 2009, 01:44:09 am »
I recently found SFML and have been going through the tutorials. However, while playing with the graphics package, my programs began beeping mysteriously, etc.. Here is the snippet that causes the crash (I commented other segments, such as event handling, out):

Code: [Select]

#include <SFML/Graphics.hpp>

int main()
{
sf::RenderWindow App(sf::VideoMode(800,600,32), "Test");
App.SetFramerateLimit(30);

sf::Image Image;
if(!Image.LoadFromFile("player.png")) //this line causes strange beeping issues
{
Image.Create(20,40,sf::Color(150,250,255,255));
}
   return EXIT_SUCCESS;
}



As the comment states, trying to load an image from a file causes a strange beeping that always comes out through my speakers, regardless of whether I muted them or whether I have my headphones in the computer; it's a nuisance that I cannot seem to avoid. Also, when I remove trying to load an image, and just create one myself, VC++'s debug states that the stack around the RenderWindow is corrupt; trying to ignore that error causes the program to stop working. Does anyone know how to resolve these issues? Thanks in advance.

Pages: [1]