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

Author Topic: Many warnings when linking  (Read 3700 times)

0 Members and 1 Guest are viewing this topic.

Wine

  • Newbie
  • *
  • Posts: 11
    • View Profile
Many warnings when linking
« 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 ;).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Many warnings when linking
« Reply #1 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.
Laurent Gomila - SFML developer

Wine

  • Newbie
  • *
  • Posts: 11
    • View Profile
Many warnings when linking
« Reply #2 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Many warnings when linking
« Reply #3 on: March 30, 2010, 06:38:49 pm »
Compile SFML to get the debug symbols.
Laurent Gomila - SFML developer

Bernd

  • Newbie
  • *
  • Posts: 11
    • View Profile
Many warnings when linking
« Reply #4 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?