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

Author Topic: Static Library Link Errors  (Read 27318 times)

0 Members and 1 Guest are viewing this topic.

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Static Library Link Errors
« on: August 18, 2009, 10:25:54 am »
Version: SFML 1.5
Compiler: Visual C++ 2005 Express Edition
Description: Happens whenever I try to link to a static library, linking to anything other than a static library works.
Here's my setup: sfml-window.lib sfml-graphcs-s.lib sfml-system.lib lua5.1.lib user32.lib
I only have SFML_DYNAMIC for my Preprocessor Definitions.
Build Log:
Code: [Select]
1>------ Build started: Project: HIT, Configuration: Release Win32 ------
1>Linking...
1>collision.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> const & __thiscall sf::Drawable::GetPosition(void)const " (__imp_?GetPosition@Drawable@sf@@QBEABV?$Vector2@M@2@XZ) referenced in function "public: static bool __cdecl Collision::CircleTest(class sf::Sprite const &,class sf::Sprite const &)" (?CircleTest@Collision@@SA_NABVSprite@sf@@0@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> const & __thiscall sf::Drawable::GetPosition(void)const " (__imp_?GetPosition@Drawable@sf@@QBEABV?$Vector2@M@2@XZ)
1>collision.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> __thiscall sf::Sprite::GetSize(void)const " (__imp_?GetSize@Sprite@sf@@QBE?AV?$Vector2@M@2@XZ) referenced in function "public: static bool __cdecl Collision::CircleTest(class sf::Sprite const &,class sf::Sprite const &)" (?CircleTest@Collision@@SA_NABVSprite@sf@@0@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> __thiscall sf::Sprite::GetSize(void)const " (__imp_?GetSize@Sprite@sf@@QBE?AV?$Vector2@M@2@XZ)
1>collision.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: float __thiscall sf::Drawable::GetRotation(void)const " (__imp_?GetRotation@Drawable@sf@@QBEMXZ) referenced in function "public: static bool __cdecl Collision::BoundingBoxTest(class sf::Sprite const &,class sf::Sprite const &)" (?BoundingBoxTest@Collision@@SA_NABVSprite@sf@@0@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: float __thiscall sf::Drawable::GetRotation(void)const " (__imp_?GetRotation@Drawable@sf@@QBEMXZ)
1>collision.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> __thiscall sf::Drawable::TransformToGlobal(class sf::Vector2<float> const &)const " (__imp_?TransformToGlobal@Drawable@sf@@QBE?AV?$Vector2@M@2@ABV32@@Z) referenced in function "public: static class sf::Rect<int> __cdecl Collision::GetAABB(class sf::Sprite const &)" (?GetAABB@Collision@@SA?AV?$Rect@H@sf@@ABVSprite@3@@Z)
1>collision.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Color __thiscall sf::Sprite::GetPixel(unsigned int,unsigned int)const " (__imp_?GetPixel@Sprite@sf@@QBE?AVColor@2@II@Z) referenced in function "public: static bool __cdecl Collision::PixelPerfectTest(class sf::Sprite const &,class sf::Sprite const &,unsigned char)" (?PixelPerfectTest@Collision@@SA_NABVSprite@sf@@0E@Z)
1>collision.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> __thiscall sf::Drawable::TransformToLocal(class sf::Vector2<float> const &)const " (__imp_?TransformToLocal@Drawable@sf@@QBE?AV?$Vector2@M@2@ABV32@@Z) referenced in function "public: static bool __cdecl Collision::PixelPerfectTest(class sf::Sprite const &,class sf::Sprite const &,unsigned char)" (?PixelPerfectTest@Collision@@SA_NABVSprite@sf@@0E@Z)
1>collision.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Rect<int> const & __thiscall sf::Sprite::GetSubRect(void)const " (__imp_?GetSubRect@Sprite@sf@@QBEABV?$Rect@H@2@XZ) referenced in function "public: static bool __cdecl Collision::PixelPerfectTest(class sf::Sprite const &,class sf::Sprite const &,unsigned char)" (?PixelPerfectTest@Collision@@SA_NABVSprite@sf@@0E@Z)
1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sf::Rect<int> const & __thiscall sf::Sprite::GetSubRect(void)const " (__imp_?GetSubRect@Sprite@sf@@QBEABV?$Rect@H@2@XZ)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetColor(class sf::Color const &)" (__imp_?SetColor@Drawable@sf@@QAEXABVColor@2@@Z) referenced in function "int __cdecl LuaHook_SetColor(struct lua_State *)" (?LuaHook_SetColor@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z) referenced in function "int __cdecl LuaHook_SetColor(struct lua_State *)" (?LuaHook_SetColor@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetPosition(float,float)" (__imp_?SetPosition@Drawable@sf@@QAEXMM@Z) referenced in function "int __cdecl LuaHook_SetPosition(struct lua_State *)" (?LuaHook_SetPosition@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetScale(float,float)" (__imp_?SetScale@Drawable@sf@@QAEXMM@Z) referenced in function "int __cdecl LuaHook_SetScale(struct lua_State *)" (?LuaHook_SetScale@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetRotation(float)" (__imp_?SetRotation@Drawable@sf@@QAEXM@Z) referenced in function "int __cdecl LuaHook_SetAngle(struct lua_State *)" (?LuaHook_SetAngle@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Drawable::SetCenter(float,float)" (__imp_?SetCenter@Drawable@sf@@QAEXMM@Z) referenced in function "int __cdecl LuaHook_SetCenter(struct lua_State *)" (?LuaHook_SetCenter@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::FlipX(bool)" (__imp_?FlipX@Sprite@sf@@QAEX_N@Z) referenced in function "int __cdecl LuaHook_FlipX(struct lua_State *)" (?LuaHook_FlipX@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::FlipY(bool)" (__imp_?FlipY@Sprite@sf@@QAEX_N@Z) referenced in function "int __cdecl LuaHook_FlipY(struct lua_State *)" (?LuaHook_FlipY@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Color const & __thiscall sf::Drawable::GetColor(void)const " (__imp_?GetColor@Drawable@sf@@QBEABVColor@2@XZ) referenced in function "int __cdecl LuaHook_GetColor(struct lua_State *)" (?LuaHook_GetColor@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> const & __thiscall sf::Drawable::GetCenter(void)const " (__imp_?GetCenter@Drawable@sf@@QBEABV?$Vector2@M@2@XZ) referenced in function "int __cdecl LuaHook_GetCenter(struct lua_State *)" (?LuaHook_GetCenter@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<float> const & __thiscall sf::Drawable::GetScale(void)const " (__imp_?GetScale@Drawable@sf@@QBEABV?$Vector2@M@2@XZ) referenced in function "int __cdecl LuaHook_GetScale(struct lua_State *)" (?LuaHook_GetScale@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &)" (__imp_?Draw@RenderTarget@sf@@UAEXABVDrawable@2@@Z) referenced in function "int __cdecl LuaHook_DrawSprite(struct lua_State *)" (?LuaHook_DrawSprite@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (__imp_?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function "int __cdecl LuaHook_ClearScreen(struct lua_State *)" (?LuaHook_ClearScreen@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::~Image(void)" (__imp_??1Image@sf@@QAE@XZ) referenced in function "public: __thiscall std::pair<int const ,class sf::Image>::~pair<int const ,class sf::Image>(void)" (??1?$pair@$$CBHVImage@sf@@@std@@QAE@XZ)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::Image(class sf::Image const &)" (__imp_??0Image@sf@@QAE@ABV01@@Z) referenced in function "public: __thiscall std::pair<int const ,class sf::Image>::pair<int const ,class sf::Image>(int const &,class sf::Image const &)" (??0?$pair@$$CBHVImage@sf@@@std@@QAE@ABHABVImage@sf@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::SetSubRect(class sf::Rect<int> const &)" (__imp_?SetSubRect@Sprite@sf@@QAEXABV?$Rect@H@2@@Z) referenced in function "int __cdecl LuaHook_SetSubRect(struct lua_State *)" (?LuaHook_SetSubRect@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Image::Image(void)" (__imp_??0Image@sf@@QAE@XZ) referenced in function "public: class sf::Image & __thiscall std::map<int,class sf::Image,struct std::less<int>,class std::allocator<struct std::pair<int const ,class sf::Image> > >::operator[](int const &)" (??A?$map@HVImage@sf@@U?$less@H@std@@V?$allocator@U?$pair@$$CBHVImage@sf@@@std@@@4@@std@@QAEAAVImage@sf@@ABH@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Image::LoadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?LoadFromFile@Image@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "int __cdecl LuaHook_CreateImage(struct lua_State *)" (?LuaHook_CreateImage@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Sprite::SetImage(class sf::Image const &)" (__imp_?SetImage@Sprite@sf@@QAEXABVImage@2@@Z) referenced in function "int __cdecl LuaHook_CreateSprite(struct lua_State *)" (?LuaHook_CreateSprite@@YAHPAUlua_State@@@Z)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::String::~String(void)" (__imp_??1String@sf@@UAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(class sf::Unicode::Text const &,class sf::Font const &,float)" (__imp_??0String@sf@@QAE@ABVText@Unicode@1@ABVFont@1@M@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class sf::Font const & __cdecl sf::Font::GetDefaultFont(void)" (__imp_?GetDefaultFont@Font@sf@@SAABV12@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::String::SetSize(float)" (__imp_?SetSize@String@sf@@QAEXM@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::String::SetFont(class sf::Font const &)" (__imp_?SetFont@String@sf@@QAEXABVFont@2@@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::String::SetText(class sf::Unicode::Text const &)" (__imp_?SetText@String@sf@@QAEXABVText@Unicode@2@@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(void)" (__imp_??0String@sf@@QAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Font::~Font(void)" (__imp_??1Font@sf@@QAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Font::LoadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,class sf::Unicode::Text const &)" (__imp_?LoadFromFile@Font@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IABVText@Unicode@2@@Z) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: static unsigned int * sf::Font::ourDefaultCharset" (__imp_?ourDefaultCharset@Font@sf@@0PAIA) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Font::Font(void)" (__imp_??0Font@sf@@QAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z) referenced in function "void __cdecl `dynamic initializer for 'App''(void)" (??__EApp@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(void)" (__imp_??0Sprite@sf@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'SpriteArray''(void)" (??__ESpriteArray@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'SpriteArray''(void)" (??__ESpriteArray@@YAXXZ)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ) referenced in function "void __cdecl `dynamic atexit destructor for 'App''(void)" (??__FApp@@YAXXZ)
1>C:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\Release\HIT.exe : fatal error LNK1120: 41 unresolved externals
1>Build log was saved at "file://c:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\HIT\Release\BuildLog.htm"
1>HIT - 46 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I provide a robust framework.
In my a-
SFML Lua Game Engine

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Static Library Link Errors
« Reply #1 on: August 18, 2009, 10:45:30 am »
You answered yourself:
Quote
I try to link to a static library

Quote
I only have SFML_DYNAMIC for my Preprocessor Definitions.

SFML_DYNAMIC is only for dynamic libraries ;)
Laurent Gomila - SFML developer

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Static Library Link Errors
« Reply #2 on: August 18, 2009, 10:24:44 pm »
I also forgot to mention I tried linking with SFML_STATIC and SFML_SYSTEM_STATIC
I provide a robust framework.
In my a-
SFML Lua Game Engine

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Static Library Link Errors
« Reply #3 on: August 18, 2009, 11:50:24 pm »
Quote
I also forgot to mention I tried linking with SFML_STATIC and SFML_SYSTEM_STATIC

Those don't exist. Just don't define SFML_DYNAMIC.
Laurent Gomila - SFML developer

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Static Library Link Errors
« Reply #4 on: August 20, 2009, 12:45:45 am »
I did what you said,now I get another error.

Code: [Select]
1>------ Build started: Project: HIT, Configuration: Release Win32 ------
1>Linking...
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in main.obj
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in main.obj
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in main.obj
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) already defined in libcpmt.lib(string.obj)
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) already defined in libcpmt.lib(string.obj)
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported in function "public: __thiscall std::bad_alloc::bad_alloc(char const *)" (??0bad_alloc@std@@QAE@PBD@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual __thiscall std::bad_alloc::~bad_alloc(void)" (??1bad_alloc@std@@UAE@XZ)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-graphics-s.lib(Font.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function __ehhandler$??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported in function __ehhandler$??1RenderWindow@sf@@UAE@XZ
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported in function "public: __thiscall std::logic_error::logic_error(class std::logic_error const &)" (??0logic_error@std@@QAE@ABV01@@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol __invalid_parameter_noinfo imported in function "public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol _memmove_s imported in function "class sf::Event * * __cdecl std::_Uninit_copy<class sf::Event * *,class sf::Event * *,class std::allocator<class sf::Event *> >(class sf::Event * *,class sf::Event * *,class sf::Event * *,class std::allocator<class sf::Event *> &,struct std::_Scalar_ptr_iterator_tag,struct std::_Range_checked_iterator_tag)" (??$_Uninit_copy@PAPAVEvent@sf@@PAPAV12@V?$allocator@PAVEvent@sf@@@std@@@std@@YAPAPAVEvent@sf@@PAPAV12@00AAV?$allocator@PAVEvent@sf@@@0@U_Scalar_ptr_iterator_tag@0@U_Range_checked_iterator_tag@0@@Z)
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol _memmove_s imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol _memmove_s imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _longjmp imported in function "void __cdecl `anonymous namespace'::PngErrorHandler(struct png_struct_def *,char const *)" (?PngErrorHandler@?A0x721544db@@YAXPAUpng_struct_def@@PBD@Z)
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol _longjmp imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _fclose imported in function "private: bool __thiscall sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<class sf::Color,class std::allocator<class sf::Color> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@VColor@sf@@V?$allocator@VColor@sf@@@std@@@5@II@Z)
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _fclose imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _fclose imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _fopen imported in function "private: bool __thiscall sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<class sf::Color,class std::allocator<class sf::Color> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@VColor@sf@@V?$allocator@VColor@sf@@@std@@@5@II@Z)
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _fopen imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _fopen imported
1>sfml-graphics-s.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(zutil.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(SOIL.obj) : warning LNK4217: locally defined symbol _free imported in function _SOIL_free_image_data
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(pngmem.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fflush imported in function _term_destination
1>sfml-graphics-s.lib(pngwio.obj) : warning LNK4217: locally defined symbol _fflush imported in function _png_set_write_fn
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol _exit imported in function _error_exit
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol ___iob_func imported in function _output_message
1>sfml-graphics-s.lib(pngwutil.obj) : warning LNK4049: locally defined symbol ___iob_func imported
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol ___iob_func imported
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol _sprintf imported in function _format_message
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(png.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(pngwutil.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4217: locally defined symbol __gmtime64 imported in function _gmtime
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4217: locally defined symbol _abort imported in function _png_create_write_struct_2
1>sfml-graphics-s.lib(pngset.obj) : warning LNK4217: locally defined symbol _strncpy imported in function _png_set_unknown_chunks
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol _strncpy imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _fseek imported in function _skip
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _fread imported in function _getn
1>sfml-graphics-s.lib(zutil.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _malloc imported in function _convert_format
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(pngmem.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _ftell imported in function _stbi_jpeg_test_file
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _realloc imported in function _expand
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _ldexp imported in function _hdr_convert
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _strtol imported in function _hdr_load
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _hdr_load
1>sfml-graphics-s.lib(jmemmgr.obj) : warning LNK4217: locally defined symbol _getenv imported in function _jinit_memory_mgr
1>sfml-system-s.lib(Unicode.obj) : warning LNK4217: locally defined symbol ??0bad_cast@std@@QAE@PBD@Z (public: __thiscall std::bad_cast::bad_cast(char const *)) imported in function "class std::ctype<wchar_t> const & __cdecl std::use_facet<class std::ctype<wchar_t> >(class std::locale const &)" (??$use_facet@V?$ctype@_W@std@@@std@@YAABV?$ctype@_W@0@ABVlocale@0@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "private: virtual void __thiscall sf::priv::WindowImplWin32::Display(void)" (?Display@WindowImplWin32@priv@sf@@EAEXXZ)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__DescribePixelFormat@16 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings &)" (??0WindowImplWin32@priv@sf@@QAE@VVideoMode@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KAAUWindowSettings@2@@Z)
1>sfml-graphics-s.lib(jdatadst.obj) : error LNK2019: unresolved external symbol __imp__fwrite referenced in function _empty_output_buffer
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(image_DXT.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(pngwio.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(jdatadst.obj) : error LNK2019: unresolved external symbol __imp__ferror referenced in function _term_destination
1>sfml-graphics-s.lib(jerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _output_message
1>sfml-graphics-s.lib(pngwutil.obj) : error LNK2001: unresolved external symbol __imp__fprintf
1>sfml-graphics-s.lib(pngerror.obj) : error LNK2001: unresolved external symbol __imp__fprintf
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2019: unresolved external symbol __imp__fgetc referenced in function _get8
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2019: unresolved external symbol __imp__feof referenced in function _at_eof
1>sfml-graphics-s.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _jinit_memory_mgr
1>C:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\Release\HIT.exe : fatal error LNK1120: 11 unresolved externals
1>Build log was saved at "file://c:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\HIT\Release\BuildLog.htm"
1>HIT - 22 error(s), 109 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I also have /NODEFAULTLIB:MSVCRT on.
I provide a robust framework.
In my a-
SFML Lua Game Engine

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Static Library Link Errors
« Reply #5 on: August 20, 2009, 01:19:44 am »
Quote
I also have /NODEFAULTLIB:MSVCRT on.

Have you tried without?
Laurent Gomila - SFML developer

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Static Library Link Errors
« Reply #6 on: August 20, 2009, 02:52:39 am »
Yes, but with that on I get less errors.
I provide a robust framework.
In my a-
SFML Lua Game Engine

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Static Library Link Errors
« Reply #7 on: August 20, 2009, 08:28:52 am »
Which errors do you get without this option?
Laurent Gomila - SFML developer

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Static Library Link Errors
« Reply #8 on: August 21, 2009, 05:05:26 am »
Code: [Select]
1>------ Build started: Project: HIT, Configuration: Release Win32 ------
1>Compiling...
1>main.cpp
1>.\main.cpp(366) : warning C4996: '_ftime64' was declared deprecated
1>        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\sys/timeb.h(152) : see declaration of '_ftime64'
1>        Message: 'This function or variable may be unsafe. Consider using _ftime64_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>.\main.cpp(367) : warning C4996: 'ctime' was declared deprecated
1>        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\time.inl(88) : see declaration of 'ctime'
1>        Message: 'This function or variable may be unsafe. Consider using ctime_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>collision.cpp
1>Generating Code...
1>Linking...
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in main.obj
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in main.obj
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in main.obj
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static void __cdecl std::_String_base::_Xran(void)" (?_Xran@_String_base@std@@SAXXZ) already defined in libcpmt.lib(string.obj)
1>msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: static void __cdecl std::_String_base::_Xlen(void)" (?_Xlen@_String_base@std@@SAXXZ) already defined in libcpmt.lib(string.obj)
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported in function "public: __thiscall std::bad_alloc::bad_alloc(char const *)" (??0bad_alloc@std@@QAE@PBD@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual __thiscall std::bad_alloc::~bad_alloc(void)" (??1bad_alloc@std@@UAE@XZ)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-graphics-s.lib(Font.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function __ehhandler$??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported in function __ehhandler$??1RenderWindow@sf@@UAE@XZ
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported in function "public: __thiscall std::logic_error::logic_error(class std::logic_error const &)" (??0logic_error@std@@QAE@ABV01@@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol __invalid_parameter_noinfo imported in function "public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z)
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(Window.obj) : warning LNK4217: locally defined symbol _memmove_s imported in function "class sf::Event * * __cdecl std::_Uninit_copy<class sf::Event * *,class sf::Event * *,class std::allocator<class sf::Event *> >(class sf::Event * *,class sf::Event * *,class sf::Event * *,class std::allocator<class sf::Event *> &,struct std::_Scalar_ptr_iterator_tag,struct std::_Range_checked_iterator_tag)" (??$_Uninit_copy@PAPAVEvent@sf@@PAPAV12@V?$allocator@PAVEvent@sf@@@std@@@std@@YAPAPAVEvent@sf@@PAPAV12@00AAV?$allocator@PAVEvent@sf@@@0@U_Scalar_ptr_iterator_tag@0@U_Range_checked_iterator_tag@0@@Z)
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol _memmove_s imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol _memmove_s imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _longjmp imported in function "void __cdecl `anonymous namespace'::PngErrorHandler(struct png_struct_def *,char const *)" (?PngErrorHandler@?A0x721544db@@YAXPAUpng_struct_def@@PBD@Z)
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol _longjmp imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _fclose imported in function "private: bool __thiscall sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<class sf::Color,class std::allocator<class sf::Color> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@VColor@sf@@V?$allocator@VColor@sf@@@std@@@5@II@Z)
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _fclose imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _fclose imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _fopen imported in function "private: bool __thiscall sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<class sf::Color,class std::allocator<class sf::Color> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@VColor@sf@@V?$allocator@VColor@sf@@@std@@@5@II@Z)
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _fopen imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _fopen imported
1>sfml-graphics-s.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(zutil.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(SOIL.obj) : warning LNK4217: locally defined symbol _free imported in function _SOIL_free_image_data
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(pngmem.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fflush imported in function _term_destination
1>sfml-graphics-s.lib(pngwio.obj) : warning LNK4217: locally defined symbol _fflush imported in function _png_set_write_fn
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol _exit imported in function _error_exit
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol ___iob_func imported in function _output_message
1>sfml-graphics-s.lib(pngwutil.obj) : warning LNK4049: locally defined symbol ___iob_func imported
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol ___iob_func imported
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol _sprintf imported in function _format_message
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(png.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(pngwutil.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4217: locally defined symbol __gmtime64 imported in function _gmtime
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4217: locally defined symbol _abort imported in function _png_create_write_struct_2
1>sfml-graphics-s.lib(pngset.obj) : warning LNK4217: locally defined symbol _strncpy imported in function _png_set_unknown_chunks
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol _strncpy imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _fseek imported in function _skip
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _fread imported in function _getn
1>sfml-graphics-s.lib(zutil.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _malloc imported in function _convert_format
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(pngmem.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _ftell imported in function _stbi_jpeg_test_file
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _realloc imported in function _expand
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _ldexp imported in function _hdr_convert
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _strtol imported in function _hdr_load
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _hdr_load
1>sfml-graphics-s.lib(jmemmgr.obj) : warning LNK4217: locally defined symbol _getenv imported in function _jinit_memory_mgr
1>sfml-system-s.lib(Unicode.obj) : warning LNK4217: locally defined symbol ??0bad_cast@std@@QAE@PBD@Z (public: __thiscall std::bad_cast::bad_cast(char const *)) imported in function "class std::ctype<wchar_t> const & __cdecl std::use_facet<class std::ctype<wchar_t> >(class std::locale const &)" (??$use_facet@V?$ctype@_W@std@@@std@@YAABV?$ctype@_W@0@ABVlocale@0@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "private: virtual void __thiscall sf::priv::WindowImplWin32::Display(void)" (?Display@WindowImplWin32@priv@sf@@EAEXXZ)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__DescribePixelFormat@16 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings &)" (??0WindowImplWin32@priv@sf@@QAE@VVideoMode@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KAAUWindowSettings@2@@Z)
1>sfml-graphics-s.lib(jdatadst.obj) : error LNK2019: unresolved external symbol __imp__fwrite referenced in function _empty_output_buffer
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(image_DXT.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(pngwio.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(jdatadst.obj) : error LNK2019: unresolved external symbol __imp__ferror referenced in function _term_destination
1>sfml-graphics-s.lib(jerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _output_message
1>sfml-graphics-s.lib(pngwutil.obj) : error LNK2001: unresolved external symbol __imp__fprintf
1>sfml-graphics-s.lib(pngerror.obj) : error LNK2001: unresolved external symbol __imp__fprintf
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2019: unresolved external symbol __imp__fgetc referenced in function _get8
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2019: unresolved external symbol __imp__feof referenced in function _at_eof
1>sfml-graphics-s.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _jinit_memory_mgr
1>C:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\Release\HIT.exe : fatal error LNK1120: 11 unresolved externals
1>Build log was saved at "file://c:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\HIT\Release\BuildLog.htm"
1>HIT - 22 error(s), 111 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Rebuilt it, and I guess I have the same amount of errors.
I provide a robust framework.
In my a-
SFML Lua Game Engine

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Static Library Link Errors
« Reply #9 on: August 21, 2009, 09:23:12 am »
Which CRT do you link to? (C/C++ --> Code generation --> Runtime Library)
Laurent Gomila - SFML developer

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Static Library Link Errors
« Reply #10 on: August 21, 2009, 09:58:10 am »
Multi-threaded (/MT)
I provide a robust framework.
In my a-
SFML Lua Game Engine

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Static Library Link Errors
« Reply #11 on: August 21, 2009, 10:22:10 am »
You should use MultiThreaded DLL.
Laurent Gomila - SFML developer

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Static Library Link Errors
« Reply #12 on: August 21, 2009, 11:28:57 am »
Code: [Select]
1>------ Build started: Project: HIT, Configuration: Release Win32 ------
1>Compiling...
1>main.cpp
1>.\main.cpp(366) : warning C4996: '_ftime64' was declared deprecated
1>        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\sys/timeb.h(152) : see declaration of '_ftime64'
1>        Message: 'This function or variable may be unsafe. Consider using _ftime64_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>.\main.cpp(367) : warning C4996: 'ctime' was declared deprecated
1>        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\time.inl(88) : see declaration of 'ctime'
1>        Message: 'This function or variable may be unsafe. Consider using ctime_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>collision.cpp
1>Generating Code...
1>Linking...
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported in function "protected: static void __cdecl std::vector<class sf::VideoMode,class std::allocator<class sf::VideoMode> >::_Xlen(void)" (?_Xlen@?$vector@VVideoMode@sf@@V?$allocator@VVideoMode@sf@@@std@@@std@@KAXXZ)
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>main.obj : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported in function "public: __thiscall std::bad_alloc::bad_alloc(char const *)" (??0bad_alloc@std@@QAE@PBD@Z)
1>sfml-window-s.lib(Window.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABQBD@Z (public: __thiscall std::exception::exception(char const * const &)) imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual void * __thiscall std::bad_alloc::`scalar deleting destructor'(unsigned int)" (??_Gbad_alloc@std@@UAEPAXI@Z)
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>main.obj : warning LNK4217: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported in function "public: virtual __thiscall std::bad_alloc::~bad_alloc(void)" (??1bad_alloc@std@@UAE@XZ)
1>sfml-window-s.lib(Window.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??1exception@std@@UAE@XZ (public: virtual __thiscall std::exception::~exception(void)) imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function __ehhandler$??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "class sf::VideoMode * __cdecl std::_Allocate<class sf::VideoMode>(unsigned int,class sf::VideoMode *)" (??$_Allocate@VVideoMode@sf@@@std@@YAPAVVideoMode@sf@@IPAV12@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::length_error::length_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0length_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>main.obj : warning LNK4217: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported in function "public: __thiscall std::logic_error::logic_error(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0logic_error@std@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@1@@Z)
1>sfml-window-s.lib(Window.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@XZ (public: __thiscall std::exception::exception(void)) imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>main.obj : warning LNK4217: locally defined symbol __invalid_parameter_noinfo imported in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<int,class sf::Image,struct std::less<int>,class std::allocator<struct std::pair<int const ,class sf::Image> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<int,class sf::Image,struct std::less<int>,class std::allocator<struct std::pair<int const ,class sf::Image> >,0> >::const_iterator const &)const " (??8const_iterator@?$_Tree@V?$_Tmap_traits@HVImage@sf@@U?$less@H@std@@V?$allocator@U?$pair@$$CBHVImage@sf@@@std@@@4@$0A@@std@@@std@@QBE_NABV012@@Z)
1>sfml-window-s.lib(Window.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4217: locally defined symbol __invalid_parameter_noinfo imported in function "private: static void __cdecl sf::VideoMode::InitializeModes(void)" (?InitializeModes@VideoMode@sf@@CAXXZ)
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol __invalid_parameter_noinfo imported
1>sfml-graphics-s.lib(FontLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-system-s.lib(Unicode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(Image.obj) : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported in function "private: bool __thiscall sf::Image::CreateTexture(void)" (?CreateTexture@Image@sf@@AAE_NXZ)
1>sfml-graphics-s.lib(String.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(Font.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(VideoModeSupport.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(WindowImplWin32.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(Sprite.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(RenderWindow.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>main.obj : warning LNK4217: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported in function "public: __thiscall std::bad_alloc::bad_alloc(class std::bad_alloc const &)" (??0bad_alloc@std@@QAE@ABV01@@Z)
1>sfml-window-s.lib(Window.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(VideoMode.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-window-s.lib(WindowImpl.obj) : warning LNK4049: locally defined symbol ??0exception@std@@QAE@ABV01@@Z (public: __thiscall std::exception::exception(class std::exception const &)) imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _longjmp imported in function "void __cdecl `anonymous namespace'::PngErrorHandler(struct png_struct_def *,char const *)" (?PngErrorHandler@?A0x721544db@@YAXPAUpng_struct_def@@PBD@Z)
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol _longjmp imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _fclose imported in function "private: bool __thiscall sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<class sf::Color,class std::allocator<class sf::Color> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@VColor@sf@@V?$allocator@VColor@sf@@@std@@@5@II@Z)
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _fclose imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _fclose imported
1>sfml-graphics-s.lib(ImageLoader.obj) : warning LNK4217: locally defined symbol _fopen imported in function "private: bool __thiscall sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<class sf::Color,class std::allocator<class sf::Color> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$vector@VColor@sf@@V?$allocator@VColor@sf@@@std@@@5@II@Z)
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _fopen imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _fopen imported
1>sfml-graphics-s.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(zutil.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(SOIL.obj) : warning LNK4217: locally defined symbol _free imported in function _SOIL_free_image_data
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(pngmem.obj) : warning LNK4049: locally defined symbol _free imported
1>sfml-graphics-s.lib(jdatadst.obj) : warning LNK4217: locally defined symbol _fflush imported in function _term_destination
1>sfml-graphics-s.lib(pngwio.obj) : warning LNK4217: locally defined symbol _fflush imported in function _png_set_write_fn
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol _exit imported in function _error_exit
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol ___iob_func imported in function _output_message
1>sfml-graphics-s.lib(pngwutil.obj) : warning LNK4049: locally defined symbol ___iob_func imported
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol ___iob_func imported
1>sfml-graphics-s.lib(jerror.obj) : warning LNK4217: locally defined symbol _sprintf imported in function _format_message
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(png.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(pngwutil.obj) : warning LNK4049: locally defined symbol _sprintf imported
1>sfml-graphics-s.lib(pngwrite.obj) : warning LNK4217: locally defined symbol _abort imported in function _png_create_write_struct_2
1>sfml-graphics-s.lib(pngset.obj) : warning LNK4217: locally defined symbol _strncpy imported in function _png_set_unknown_chunks
1>sfml-graphics-s.lib(pngerror.obj) : warning LNK4049: locally defined symbol _strncpy imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _fseek imported in function _skip
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _fread imported in function _getn
1>sfml-graphics-s.lib(zutil.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _malloc imported in function _convert_format
1>sfml-graphics-s.lib(image_DXT.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(pngmem.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(jmemnobs.obj) : warning LNK4049: locally defined symbol _malloc imported
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _ftell imported in function _stbi_jpeg_test_file
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _realloc imported in function _expand
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _ldexp imported in function _hdr_convert
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _strtol imported in function _hdr_load
1>sfml-graphics-s.lib(stb_image_aug.obj) : warning LNK4217: locally defined symbol _strncmp imported in function _hdr_load
1>sfml-graphics-s.lib(jmemmgr.obj) : warning LNK4217: locally defined symbol _getenv imported in function _jinit_memory_mgr
1>sfml-system-s.lib(Unicode.obj) : warning LNK4217: locally defined symbol ??0bad_cast@std@@QAE@PBD@Z (public: __thiscall std::bad_cast::bad_cast(char const *)) imported in function "class std::ctype<wchar_t> const & __cdecl std::use_facet<class std::ctype<wchar_t> >(class std::locale const &)" (??$use_facet@V?$ctype@_W@std@@@std@@YAABV?$ctype@_W@0@ABVlocale@0@@Z)
1>main.obj : error LNK2019: unresolved external symbol __imp___ctime64 referenced in function _ctime
1>main.obj : error LNK2019: unresolved external symbol __imp___ftime64 referenced in function "int __cdecl LuaHook_CurTime(struct lua_State *)" (?LuaHook_CurTime@@YAHPAUlua_State@@@Z)
1>sfml-window-s.lib(Window.obj) : error LNK2019: unresolved external symbol __imp__memmove_s referenced in function "class sf::Event * * __cdecl std::_Uninit_copy<class sf::Event * *,class sf::Event * *,class std::allocator<class sf::Event *> >(class sf::Event * *,class sf::Event * *,class sf::Event * *,class std::allocator<class sf::Event *> &,struct std::_Scalar_ptr_iterator_tag,struct std::_Range_checked_iterator_tag)" (??$_Uninit_copy@PAPAVEvent@sf@@PAPAV12@V?$allocator@PAVEvent@sf@@@std@@@std@@YAPAPAVEvent@sf@@PAPAV12@00AAV?$allocator@PAVEvent@sf@@@0@U_Scalar_ptr_iterator_tag@0@U_Range_checked_iterator_tag@0@@Z)
1>sfml-graphics-s.lib(String.obj) : error LNK2001: unresolved external symbol __imp__memmove_s
1>sfml-graphics-s.lib(FontLoader.obj) : error LNK2001: unresolved external symbol __imp__memmove_s
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "private: virtual void __thiscall sf::priv::WindowImplWin32::Display(void)" (?Display@WindowImplWin32@priv@sf@@EAEXXZ)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__DescribePixelFormat@16 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings &)" (??0WindowImplWin32@priv@sf@@QAE@VVideoMode@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KAAUWindowSettings@2@@Z)
1>sfml-graphics-s.lib(jdatadst.obj) : error LNK2019: unresolved external symbol __imp__fwrite referenced in function _empty_output_buffer
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(image_DXT.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(pngwio.obj) : error LNK2001: unresolved external symbol __imp__fwrite
1>sfml-graphics-s.lib(jdatadst.obj) : error LNK2019: unresolved external symbol __imp__ferror referenced in function _term_destination
1>sfml-graphics-s.lib(jerror.obj) : error LNK2019: unresolved external symbol __imp__fprintf referenced in function _output_message
1>sfml-graphics-s.lib(pngwutil.obj) : error LNK2001: unresolved external symbol __imp__fprintf
1>sfml-graphics-s.lib(pngerror.obj) : error LNK2001: unresolved external symbol __imp__fprintf
1>sfml-graphics-s.lib(pngwrite.obj) : error LNK2019: unresolved external symbol __imp___gmtime64 referenced in function _gmtime
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2019: unresolved external symbol __imp__fgetc referenced in function _get8
1>sfml-graphics-s.lib(stb_image_aug.obj) : error LNK2019: unresolved external symbol __imp__feof referenced in function _at_eof
1>sfml-graphics-s.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol __imp__sscanf referenced in function _jinit_memory_mgr
1>C:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\Release\HIT.exe : fatal error LNK1120: 15 unresolved externals
1>Build log was saved at "file://c:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\HIT\Release\BuildLog.htm"
1>HIT - 23 error(s), 112 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Still, a whole mess of errors.
I provide a robust framework.
In my a-
SFML Lua Game Engine

BoingBoing

  • Newbie
  • *
  • Posts: 17
    • View Profile
Less Errors
« Reply #13 on: August 29, 2009, 10:29:45 pm »
I don't know what I did but now there are less errors.

Code: [Select]
1>------ Build started: Project: HIT, Configuration: Release Win32 ------
1>Compiling manifest to resources...
1>Linking...
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SwapBuffers@4 referenced in function "private: virtual void __thiscall sf::priv::WindowImplWin32::Display(void)" (?Display@WindowImplWin32@priv@sf@@EAEXXZ)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__SetPixelFormat@12 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__ChoosePixelFormat@8 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__DescribePixelFormat@16 referenced in function "private: void __thiscall sf::priv::WindowImplWin32::CreateContext(class sf::VideoMode const &,struct sf::WindowSettings &)" (?CreateContext@WindowImplWin32@priv@sf@@AAEXABVVideoMode@3@AAUWindowSettings@3@@Z)
1>sfml-window-s.lib(WindowImplWin32.obj) : error LNK2019: unresolved external symbol __imp__GetDeviceCaps@8 referenced in function "public: __thiscall sf::priv::WindowImplWin32::WindowImplWin32(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings &)" (??0WindowImplWin32@priv@sf@@QAE@VVideoMode@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KAAUWindowSettings@2@@Z)
1>C:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\Release\HIT.exe : fatal error LNK1120: 5 unresolved externals
1>Build log was saved at "file://c:\Users\Henry\Documents\Visual Studio 2005\Projects\HIT\HIT\Release\BuildLog.htm"
1>HIT - 6 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========


What I did find out is that sfml-window-s.lib is the problem.

I also switched over to the SVN.
I provide a robust framework.
In my a-
SFML Lua Game Engine

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Static Library Link Errors
« Reply #14 on: August 30, 2009, 12:29:52 am »
Did you check an option like "ignore default libraries"?
Laurent Gomila - SFML developer

 

anything