SFML community forums

Help => General => Topic started by: Keith13024 on May 14, 2017, 08:16:52 pm

Title: Compilation error sfml2.0 on visual studio c++2010 express
Post by: Keith13024 on May 14, 2017, 08:16:52 pm
I get this error every time I compile with sfml 2.0:
'SFML.exe': Loaded 'C:\Users\Martin\Documents\SFML\Release\SFML.exe', Symbols loaded.
'SFML.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Program Files\AVAST Software\Avast\aswhookx.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
The program '[2284] SFML.exe: Native' has exited with code -1073741701 (0xc000007b).
Title: Re: Compilation error sfml2.0 on visual studio c++2010 express
Post by: eXpl0it3r on May 14, 2017, 08:49:53 pm
Run your program in debug mode and get a stack trace from where it fails.

Additionally you should update to SFML 2.4.2 and VS 2017 Community.
Title: Re: Compilation error sfml2.0 on visual studio c++2010 express
Post by: Keith13024 on May 14, 2017, 09:07:58 pm
I got this error when I used Debug:
'SFML.exe': Loaded 'C:\Users\Martin\Documents\SFML\Debug\SFML.exe', Symbols loaded.
'SFML.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Program Files\AVAST Software\Avast\aswhookx.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Users\Martin\Documents\SFML\SFML\sfml-graphics-d-2.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Users\Martin\Documents\SFML\SFML\sfml-window-d-2.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Users\Martin\Documents\SFML\SFML\sfml-system-d-2.dll', Cannot find or open the PDB file
'SFML.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'SFML.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
The program '[7176] SFML.exe: Native' has exited with code -1073741701 (0xc000007b).
Title: Re: Compilation error sfml2.0 on visual studio c++2010 express
Post by: eXpl0it3r on May 14, 2017, 09:10:09 pm
Are you running it through the debugger? It should break when it crashes and show you the call stck and where it crashes.
Title: Re: Compilation error sfml2.0 on visual studio c++2010 express
Post by: Keith13024 on May 14, 2017, 09:22:55 pm
Yes I am using the debugger. Also when it crashes it gives me an error 0xc000007b and says the application was unable to start properly.
Title: Re: Compilation error sfml2.0 on visual studio c++2010 express
Post by: eXpl0it3r on May 14, 2017, 10:12:35 pm
Did you provide the x64 SFML libs while building an x86 application?

Why are you using VS 2010 and SFML 2.0?
Title: Re: Compilation error sfml2.0 on visual studio c++2010 express
Post by: Keith13024 on May 15, 2017, 09:33:46 pm
No I did not. I am using vs2010 because my pc lacks a lot off space on its hard disk and I am also using sfml2.0 because it supports vs 2010. I tried using sfml2.3 but It gave me the same error.
Title: Re: Compilation error sfml2.0 on visual studio c++2010 express
Post by: eXpl0it3r on May 16, 2017, 11:31:09 am
All versions of SFML support VS 2010, we just stopped providing pre-built packages, as VS 2010 is ancient by now.

I'm actually not sure, but I think with the "modular" VS 2017 installer, you might be able to get a smaller footprint than with VS 2010, but you'd have to uninstall VS 2010 given that you're so low on space.
Or order a new disk. ;)

As for the problem 0000007b is often an indication that you're mixing architecture types. For example compiling as x86 but using the x64 libs.