SFML community forums
Help => General => Topic started by: Wine on March 30, 2010, 04:59:46 pm
-
When I build application in Visual C++ 2008 Express Edition I get many warnings:
sfml-system-s-d.lib(Platform.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'E:\_proj\_bin\libs\sfml-1.5\lib\sfml-system-s-d.lib' or at 'E:\_proj\Middle\Debug\vc90.pdb'; linking object as if no debug info
sfml-system-s-d.lib(Clock.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'E:\_proj\_bin\libs\sfml-1.5\lib\sfml-system-s-d.lib' or at 'E:\_proj\Middle\Debug\vc90.pdb'; linking object as if no debug info
sfml-system-s-d.lib(Sleep.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'E:\_proj\_bin\libs\sfml-1.5\lib\sfml-system-s-d.lib' or at 'E:\_proj\Middle\Debug\vc90.pdb'; linking object as if no debug info
sfml-window-s-d.lib(Joystick.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with 'E:\_proj\_bin\libs\sfml-1.5\lib\sfml-window-s-d.lib' or at
// many, many more...
Application is Ok. My includes:
#ifndef _DEBUG
#include <sfml/System.hpp>
#pragma comment(lib, "sfml-system-s.lib")
#include <sfml/Window.hpp>
#pragma comment(lib, "sfml-window-s.lib")
#include <sfml/Graphics.hpp>
#pragma commnet(lib, "sfml-graphics-s.lib")
#else
#include <sfml/System.hpp>
#pragma comment(lib, "sfml-system-s-d.lib")
#include <sfml/Window.hpp>
#pragma comment(lib, "sfml-window-s-d.lib")
#include <sfml/Graphics.hpp>
#pragma comment(lib, "sfml-graphics-s-d.lib")
#endif
How to avoid that warnings? I know that only warning but I like to have clean output ;).
-
This is because you don't have the debug symbols of SFML (which is normal). These warnings won't happen in release mode.
-
This is because you don't have the debug symbols of SFML (which is normal). These warnings won't happen in release mode.
But, how to avoid it in debug mode?
-
Compile SFML to get the debug symbols.
-
Hi,
I'm using static linking and compiled SFML, I guess the debug files are somewhere in SFLM-1.6\Temp\vc2008. What do I have to do with them to get rid of the warnings?