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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mizore

Pages: [1]
1
General / Linker problems under VS2010 and SFML 2.0
« on: March 24, 2011, 05:53:59 pm »
Thank you for your help.

2
General / Linker problems under VS2010 and SFML 2.0
« on: March 24, 2011, 05:49:12 pm »
It fixed most errors. But one more is still there.
Quote
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup


Edit:
Fixed it. Changed SubSystem from Windows (/SUBSYSTEM:WINDOWS) to empty box.
But can i somehow get rid of console then?

3
General / Linker problems under VS2010 and SFML 2.0
« on: March 24, 2011, 05:14:30 pm »
Hello. I'm having problems with the linker. I build static libraries from source using cmake.

Used libraries:
Quote
sfml-window-s-d.lib
sfml-graphics-s-d.lib


Code i have:
Code: [Select]
#define SFML_STATIC

#include <SFML\Window.hpp>
#include <SFML\Graphics.hpp>

int main(){
sf::RenderWindow window(sf::VideoMode(800, 600), "Test window :3");
}


Errors I'm getting:
Quote
sfml-window-s-d.lib(Window.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::Err(void)" (?Err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::Err(void)" (?Err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

sfml-window-s-d.lib(WindowImplWin32.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::Err(void)" (?Err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

sfml-graphics-s-d.lib(GLCheck.obj) : error LNK2019: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::Err(void)" (?Err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ) referenced in function "void __cdecl sf::priv::GLCheckError(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int)" (?GLCheckError@priv@sf@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z)

sfml-graphics-s-d.lib(Image.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::Err(void)" (?Err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

sfml-graphics-s-d.lib(Shader.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::Err(void)" (?Err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

sfml-graphics-s-d.lib(ImageLoader.obj) : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl sf::Err(void)" (?Err@sf@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

sfml-graphics-s-d.lib(Image.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::Mutex::Mutex(void)" (??0Mutex@sf@@QAE@XZ) referenced in function "protected: __thiscall sf::Resource<class sf::Image>::Resource<class sf::Image>(void)" (??0?$Resource@VImage@sf@@@sf@@IAE@XZ)

sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol "public: __thiscall sf::Mutex::Mutex(void)" (??0Mutex@sf@@QAE@XZ)

sfml-graphics-s-d.lib(Image.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::Mutex::~Mutex(void)" (??1Mutex@sf@@QAE@XZ) referenced in function "protected: __thiscall sf::Resource<class sf::Image>::~Resource<class sf::Image>(void)" (??1?$Resource@VImage@sf@@@sf@@IAE@XZ)

sfml-window-s-d.lib(WglContext.obj) : error LNK2001: unresolved external symbol "public: __thiscall sf::Mutex::~Mutex(void)" (??1Mutex@sf@@QAE@XZ)

MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function "public: __thiscall sf::Window::Window(void)" (??0Window@sf@@QAE@XZ)

sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "public: void __thiscall sf::Clock::Reset(void)" (?Reset@Clock@sf@@QAEXXZ) referenced in function "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)

sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)

sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)

sfml-window-s-d.lib(GlContext.obj) : error LNK2019: unresolved external symbol "public: void * __thiscall sf::ThreadLocal::GetValue(void)const " (?GetValue@ThreadLocal@sf@@QBEPAXXZ) referenced in function "public: class sf::priv::GlContext * __thiscall sf::ThreadLocalPtr<class sf::priv::GlContext>::operator->(void)const " (??C?
$ThreadLocalPtr@VGlContext@priv@sf@@@sf@@QBEPAVGlContext@priv@1@XZ)

sfml-window-s-d.lib(GlContext.obj) : error LNK2019: unresolved external symbol "public: void __thiscall sf::ThreadLocal::SetValue(void *)" (?SetValue@ThreadLocal@sf@@QAEXPAX@Z) referenced in function "public: class sf::ThreadLocalPtr<class sf::priv::GlContext> & __thiscall sf::ThreadLocalPtr<class sf::priv::GlContext>::operator=(class sf::priv::GlContext *)" (??4?

$ThreadLocalPtr@VGlContext@priv@sf@@@sf@@QAEAAV01@PAVGlContext@priv@1@@Z)

sfml-window-s-d.lib(GlContext.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::ThreadLocal::ThreadLocal(void *)" (??0ThreadLocal@sf@@QAE@PAX@Z) referenced in function "public: __thiscall sf::ThreadLocalPtr<class sf::priv::GlContext>::ThreadLocalPtr<class sf::priv::GlContext>(class sf::priv::GlContext *)" (??0?
$ThreadLocalPtr@VGlContext@priv@sf@@@sf@@QAE@PAVGlContext@priv@1@@Z)

sfml-window-s-d.lib(GlContext.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::ThreadLocal::~ThreadLocal(void)" (??1ThreadLocal@sf@@QAE@XZ) referenced in function "public: __thiscall sf::ThreadLocalPtr<class sf::priv::GlContext>::~ThreadLocalPtr<class sf::priv::GlContext>(void)" (??1?$ThreadLocalPtr@VGlContext@priv@sf@@@sf@@QAE@XZ)

sfml-window-s-d.lib(WglContext.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::Lock::~Lock(void)" (??1Lock@sf@@QAE@XZ) referenced in function "private: void __thiscall sf::priv::WglContext::CreateContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?CreateContext@WglContext@priv@sf@@AAEXPAV123@IABUContextSettings@3@@Z)

sfml-window-s-d.lib(WglContext.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::Lock::Lock(class sf::Mutex &)" (??0Lock@sf@@QAE@AAVMutex@1@@Z) referenced in function "private: void __thiscall sf::priv::WglContext::CreateContext(class sf::priv::WglContext *,unsigned int,struct sf::ContextSettings const &)" (?

CreateContext@WglContext@priv@sf@@AAEXPAV123@IABUContextSettings@3@@Z)


Help would be appreciated.

Pages: [1]