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

Author Topic: Compilation error sfml2.0 on visual studio c++2010 express  (Read 2942 times)

0 Members and 1 Guest are viewing this topic.

Keith13024

  • Newbie
  • *
  • Posts: 5
    • View Profile
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).

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Compilation error sfml2.0 on visual studio c++2010 express
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Keith13024

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Compilation error sfml2.0 on visual studio c++2010 express
« Reply #2 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).

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Compilation error sfml2.0 on visual studio c++2010 express
« Reply #3 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Keith13024

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Compilation error sfml2.0 on visual studio c++2010 express
« Reply #4 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.
« Last Edit: May 14, 2017, 09:24:28 pm by Keith13024 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Compilation error sfml2.0 on visual studio c++2010 express
« Reply #5 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?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Keith13024

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Compilation error sfml2.0 on visual studio c++2010 express
« Reply #6 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Compilation error sfml2.0 on visual studio c++2010 express
« Reply #7 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/