Question

J'ai posté une question sur ce plus tôt et se rendit compte que mon problème n'a pas été résolu en réalité. Quoi qu'il en soit, ma question / problème est que, pour une raison quelconque quand je lance mon application SDL par l'IDE, que ce soit Code :: Blocks ou Visual C ++ 2010 mon BMP ne se charge pas. Toutefois, si je le lance à travers le fichier Explorer, il affiche les PGB correctement. Je ne sais pas quel est le problème, peut-être quelque chose à voir avec le fait que je suis en cours d'exécution 64 bits de Windows?

Quand je le lance à travers Visual C ++ 2010 Je reçois les erreurs suivantes:

'Brain Bread.exe': Loaded 'C:\Users\UserNameHere\Desktop\Brain Bread\Debug\Brain Bread.exe', Symbols loaded.
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Users\UserNameHere\Desktop\Brain Bread\Debug\SDL.dll', Binary was not built with debug information.
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\apphelp.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\AppPatch\AcLayers.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\winspool.drv', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\mpr.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\ddraw.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\dwmapi.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\setupapi.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\devobj.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll'
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\dciman32.dll'
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\KBDUS.DLL', Cannot find or open the PDB file
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL'
'Brain Bread.exe': Loaded 'C:\Windows\SysWOW64\KBDUS.DLL', Cannot find or open the PDB file
'Brain Bread.exe': Unloaded 'C:\Windows\SysWOW64\KBDUS.DLL'
The program '[4992] Brain Bread.exe: Native' has exited with code 0 (0x0).
Était-ce utile?

La solution

C'est probablement parce que lorsque vous exécutez votre programme par l'IDE, l'IDE définit le répertoire de travail en cours pour le programme de manière incorrecte, donc si vous utilisez des chemins relatifs à PGB dans votre code, il ne fonctionnera pas. Essayez de découvrir qui travaille dir les jeux IDE pour votre application et copiez les PGB là.

Autres conseils

Le problème est probablement le répertoire de travail courant. Code :: Blocks exécute votre application à partir de laquelle le fichier *.cbp est situé. Je suis sûr que Code :: Blocks vous permet de changer cela quelque part.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top