1
Graphics / Re: Drawing darkness around player
« on: October 06, 2012, 02:03:15 am »Thank you, it works perfectly now. Your example code really helped also.
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.
1> main.cpp
1>sfml-main-d.lib(SFML_Main.cpp.obj) : warning LNK4099: PDB 'sfml-main-d.pdb' was not found with 'sfml-main-d.lib(SFML_Main.cpp.obj)' or at 'c:\users\username\documents\visual studio 2010\Projects\MyProject\Debug\sfml-main-d.pdb'; linking object as if no debug info
1>sfml-main-d.lib(SFML_Main.cpp.obj) : warning LNK4099: PDB 'sfml-main-d.pdb' was not found with 'sfml-main-d.lib(SFML_Main.cpp.obj)' or at 'c:\users\username\documents\visual studio 2010\Projects\MyProject\Debug\sfml-main-d.pdb'; linking object as if no debug info
1> MyProject.vcxproj -> c:\username\mycomputer\documents\visual studio 2010\Projects\MyProject\Debug\MyProject.exe
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
'MyProject.exe': Loaded 'C:\Users\username\Documents\Visual Studio 2010\Projects\MyProject\Release\MyProject.exe', Symbols loaded.
'MyProject.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\sfml-graphics-2.dll', Binary was not built with debug information.
'MyProject.exe': Loaded 'C:\Windows\System32\sfml-system-2.dll', Binary was not built with debug information.
'MyProject.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\MinGW\bin\libgcc_s_dw2-1.dll', Binary was not built with debug information.
'MyProject.exe': Loaded 'C:\MinGW\bin\libstdc++-6.dll', Binary was not built with debug information.
'MyProject.exe': Loaded 'C:\Windows\System32\sfml-window-2.dll', Binary was not built with debug information.
'MyProject.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\opengl32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\glu32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file
'MyProject.exe': Loaded 'C:\Windows\System32\oleacc.dll', Cannot find or open the PDB file
Debugger:: An unhandled non-continuable exception was thrown during process load
There's no magic in VS. If VS says it can't open that lib file, then there are only two possibilities:
- VS couldn't find the library.
- VS doesn't have access to it (not enough rights or something else is blocking it).
Since the second one is rather unlikely I'd say that you still somehow setup something wrong.
You're mentioning you've tried once the dynamic and once the static libraries for debuging, do you also have compiled the debug libraries?
You have to run the library compilation twice once for debug and once for release.
fatal error LNK1104: cannot open file 'sfml-graphics-s-d.lib'
You can also get more details on the crash by looking at the Windows Event Viewer (Control Panel->Administritive Tools->Event Viewer->Windows Logs->Application).
Run the program so it crashes, then immediately look at the error event that will be generated.
It could be missing WinSxS libraries, if not then as Laurent suggested, write a small program to reproduce the fault. If you intend the game to only run on Windows....personally, I would always use Visual Studio