SFML community forums

Help => General => Topic started by: Wine on March 30, 2010, 04:59:46 pm

Title: Many warnings when linking
Post by: Wine on March 30, 2010, 04:59:46 pm
When I build application in Visual C++ 2008 Express Edition I get many warnings:
Code: [Select]

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:
Code: [Select]

#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 ;).
Title: Many warnings when linking
Post by: Laurent on March 30, 2010, 05:20:54 pm
This is because you don't have the debug symbols of SFML (which is normal). These warnings won't happen in release mode.
Title: Many warnings when linking
Post by: Wine on March 30, 2010, 05:23:25 pm
Quote from: "Laurent"
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?
Title: Many warnings when linking
Post by: Laurent on March 30, 2010, 06:38:49 pm
Compile SFML to get the debug symbols.
Title: Many warnings when linking
Post by: Bernd on April 08, 2010, 10:34:26 pm
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?