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 - Gerald Bates

Pages: [1]
1
General / Re: Console visibility
« on: June 15, 2024, 01:48:06 pm »
Managed to download correct SFML version and run CMAKE to build static debug/release versions.  The typical test example (green circle) works.  I am also able to change whether I want to see the console in either debug or release versions without errors, so debug has a console and release doesn't.  I don't get PDB errors anymore either.

Thanks  eXpl0it3r for all your help, appreciated.

2
General / Re: Console visibility
« on: June 14, 2024, 09:06:55 pm »
Yes I built from master!  eXpl0it3r You are seriously good and I appreciate your help.  Will keep progressing and use the branch you suggested.  I am a beginner at this.

3
General / Re: Console visibility
« on: June 14, 2024, 05:52:57 pm »
I have had a thought.  Why don't I revert to using the pre-built binaries and copy over the pdb files from my build.  Would that work?

4
General / Re: Console visibility
« on: June 14, 2024, 05:21:04 pm »
I will deal with PDB issue shortly.  I have installed cmake and compiled sfml from source, have static release and debug now.  Setup my project and tried to build but have errors?  It's the usual test program with a green circle in a window.  Errors are:

error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'sf::VideoMode'
error C2665: 'sf::RenderWindow::RenderWindow': no overloaded function could convert all the argument types
error C2660: 'sf::WindowBase::pollEvent': function does not take 1 arguments
error C2039: 'type': is not a member of 'sf::Event'

Any ideas what's going on?

5
General / Re: Console visibility
« on: June 14, 2024, 02:22:07 pm »
Thankyou eXpl0it3r, I did not know that.  And it works, no need for winMain().  Now I have a console in debug build but not in release.

Just one annoying issue left in visual studio.  In debug build I get loads of errors like this one:

warning LNK4099: PDB '' was not found with 'sfml-graphics-s-d.lib(BlendMode.obj)

Is this because I am using a different version of VS than what you built the binaries with?  How can I stop these warnings?

6
General / [SOLVED] Console visibility
« on: June 14, 2024, 01:20:05 pm »
Hello everyone.  I have a quick question about the console window being shown in both debug and release.  Am I right in thinking that if I create an application and supply all the windows skeleton code and use WinMain(...), I can leave the debug as subsystem console and release as windows in visual studio? That way I only get a console for debug builds?

Pages: [1]
anything