Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED]Problem with SFML in VS2010 Debug  (Read 2826 times)

0 Members and 1 Guest are viewing this topic.

DJuego

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
[SOLVED]Problem with SFML in VS2010 Debug
« on: March 25, 2012, 07:29:58 pm »
Hi!!!  This my first post. I am a lonely spanish dev.  Excuse that I am not too talker. I am ashamed for my very lacking English  :-X

In any case I am delighted to have found you. Thank you for being here and there. Yep! Thanks Laurent & Co. !

OpenGL o DirectX are too daunting for weak people like me. And this 'little' library seems to have a very well deliberate design. Elegant and simple. I am delighted.

However I hope the best will be the community. :-}

Ok. I have my first problem. :D
 
SFML 2.0 Snapshot (2012/03/25)=>LaurentGomila-SFML-24f8c35

I have built it with success (no errors) in MinGW (official) gcc-4.6.2 and VS2010. No problem. (CMake with default settings)

I can build (compile and link) this minimalist sample in debug and release mode in gcc and MSVC:

Code: [Select]
#include <SFML/Window.hpp>

int main()
{
    sf::Window ventana;

    return EXIT_SUCCESS;
}

Everything was very easy. I was happy.  ;)

Now When I try run:

Works with gcc-4.6.2 debug (Codeblocks). Perfect!
Works with gcc-4.6.2 release (Codeblocks). Perfect!

Do not work with VS2010 debug. :( <- The problem is here.
Works with VS2010 release Perfect!

The Output:

Code: [Select]

'Mi_Primer_SFML_MVC2010.exe': Loaded 'P:\Proyectos\MiPrimerSFML\prj\Mi_Primer_SFML_MVC2010\Debug\Mi_Primer_SFML_MVC2010.exe', Symbols loaded.
'Mi_Primer_SFML_MVC2010.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'Mi_Primer_SFML_MVC2010.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'Mi_Primer_SFML_MVC2010.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'Mi_Primer_SFML_MVC2010.exe': Loaded 'P:\Proyectos\MiPrimerSFML\prj\Mi_Primer_SFML_MVC2010\Debug\sfml-window-d-2.dll', Symbols loaded.
The program '[6316] Mi_Primer_SFML_MVC2010.exe: Native' has exited with code -1073741811 (0xc000000d).


Preprocessor Definitions:
I tried SFML_DYNAMIC and SFML_STATIC. Same problem

Additional Dependencies:
sfml-window-d.lib;

Any idea? Thanks in advance!


My System:
Microsoft Visual Studio Ultimate (Universy License)
Windows 7 64b (Spanish).
8GB RAM
NVIDIA GeForce GT 220
« Last Edit: March 31, 2012, 12:00:22 am by DJuego »

DJuego

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Problem with SFML in VS2010 Debug
« Reply #1 on: March 29, 2012, 08:14:15 pm »
Ok! The problem is resolved.  :o  How? I am not sure...  :-\

The steps (32 bits configuration):

1. LaurentGomila-SFML-bindings_removed-225-g90ba800 (2012/03/29)

2. CMake

3. STATIC_STD_LIBS check! <- Perhaps this is the reason.

4. BUILD_EXAMPLES check!

6. Change CMAKE_INSTALL_PREFIX according to personal preferences. Generally, I don't like install but...  :-\

5. Configure & Generate

6. Open the solution with VS2010

7. Build ALL_BUILD & INSTALL Projects in  Debug and Release mode

*INSTALL*

 :)

For symmetry, I will repeat this steps for Mingw 4.6.2 environtment (32 bits configuration).


DJuego

My System:
Microsoft Visual Studio Ultimate (Universy License)
Windows 7 64b (Spanish).
8GB RAM
NVIDIA GeForce GT 220

P.S: The examples works!  ;D

P.S.2: Excuse me my English.
« Last Edit: March 29, 2012, 10:55:15 pm by DJuego »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problem with SFML in VS2010 Debug
« Reply #2 on: March 29, 2012, 08:40:21 pm »
Yep, don't touch STATIC_STD_LIBS if you don't know what it does.
Laurent Gomila - SFML developer

DJuego

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: Problem with SFML in VS2010 Debug
« Reply #3 on: March 30, 2012, 12:07:39 am »
 Your answer is a honor for me. 8).

I expect to do something interesting with your SFML but i must admit it is still much too soon to be sure. In any case THANKS!!   :-*

DJuego