9
« on: November 22, 2014, 06:01:59 PM »
If I comment the line setlocale(LC_CTYPE, "");
on "platformSDL.cpp" the code compiles up to 90% and then this happens:
Undefined symbols for architecture i386:
"_SDL_AllocFormat", referenced from:
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_ConvertSurface", referenced from:
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_CreateRGBSurface", referenced from:
CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
CBRenderSDL::TakeScreenshot() in BRenderSDL.o
GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
"_SDL_CreateRGBSurfaceFrom", referenced from:
CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
"_SDL_CreateRenderer", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_CreateTexture", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
CBSurfaceSDL::Create(int, int) in BSurfaceSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_CreateTextureFromSurface", referenced from:
CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
CBSurfaceSDL::CreateFromSDLSurface(SDL_Surface*) in BSurfaceSDL.o
"_SDL_CreateWindow", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_Delay", referenced from:
CBPlatform::SleepMs(unsigned int) in PlatformSDL.o
"_SDL_DestroyRenderer", referenced from:
CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
"_SDL_DestroyTexture", referenced from:
CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
CBSurfaceSDL::~CBSurfaceSDL() in BSurfaceSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_DestroyWindow", referenced from:
CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
"_SDL_FreeFormat", referenced from:
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_FreeSurface", referenced from:
CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
GlyphInfo::~GlyphInfo() in FontGlyphCache.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_GL_SetAttribute", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_GetColorKey", referenced from:
CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_GetCurrentDisplayMode", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_GetDisplayMode", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_GetKeyboardState", referenced from:
CBKeyboardState::ScCallMethod(CScScript*, CScStack*, CScStack*, char*) in BKeyboardState.o
"_SDL_GetModState", referenced from:
CBKeyboardState::IsControlDown() in BKeyboardState.o
CBKeyboardState::IsAltDown() in BKeyboardState.o
CBKeyboardState::IsShiftDown() in BKeyboardState.o
"_SDL_GetMouseState", referenced from:
CBPlatform::GetCursorPos(tagPOINT*) in PlatformSDL.o
"_SDL_GetNumDisplayModes", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_GetPlatform", referenced from:
CBPlatform::GetPlatformName() in PlatformSDL.o
"_SDL_GetRGB", referenced from:
CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
"_SDL_GetRGBA", referenced from:
CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
"_SDL_GetRendererInfo", referenced from:
CBRenderSDL::GetName() in BRenderSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_GetScancodeFromKey", referenced from:
CBKeyboardState::ScCallMethod(CScScript*, CScStack*, CScStack*, char*) in BKeyboardState.o
"_SDL_GetSurfaceAlphaMod", referenced from:
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_GetSurfaceBlendMode", referenced from:
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_GetSurfaceColorMod", referenced from:
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_GetTicks", referenced from:
CBPlatform::GetTime() in PlatformSDL.o
"_SDL_Init", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_LockSurface", referenced from:
CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_LockTexture", referenced from:
CBSurfaceSDL::FillTexture(void const*, int, CBSurfaceSDL*) in BSurfaceSDL.o
"_SDL_MapRGB", referenced from:
CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
"_SDL_MapRGBA", referenced from:
CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
"_SDL_PollEvent", referenced from:
CBPlatform::MessageLoop() in PlatformSDL.o
"_SDL_QueryTexture", referenced from:
CBSurfaceSDL::IsTransparentAt(int, int) in BSurfaceSDL.o
CBSurfaceSDL::IsTransparentAtLite(int, int) in BSurfaceSDL.o
CBSurfaceSDL::GetAlphaAt(int, int) in BSurfaceSDL.o
"_SDL_Quit", referenced from:
CBRenderSDL::~CBRenderSDL() in BRenderSDL.o
"_SDL_RenderClear", referenced from:
CBRenderSDL::Fill(unsigned char, unsigned char, unsigned char, tagRECT*) in BRenderSDL.o
"_SDL_RenderCopy", referenced from:
CBRenderSDL::SendRenderingHintSceneComplete() in BRenderSDL.o
CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
"_SDL_RenderCopyEx", referenced from:
CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
"_SDL_RenderDrawLine", referenced from:
CBRenderSDL::DrawLine(int, int, int, int, unsigned int) in BRenderSDL.o
"_SDL_RenderFillRect", referenced from:
CBRenderSDL::FadeToColor(unsigned int, tagRECT*) in BRenderSDL.o
"_SDL_RenderGetViewport", referenced from:
CBRenderSDL::ModTargetRect(SDL_Rect*) in BRenderSDL.o
CBRenderSDL::TakeScreenshot() in BRenderSDL.o
"_SDL_RenderPresent", referenced from:
CBRenderSDL::Flip() in BRenderSDL.o
"_SDL_RenderReadPixels", referenced from:
CBRenderSDL::TakeScreenshot() in BRenderSDL.o
"_SDL_RenderSetViewport", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
CBRenderSDL::SendRenderingHintSceneComplete() in BRenderSDL.o
CBRenderSDL::EraseBackground() in BRenderSDL.o
CBRenderSDL::SetViewport(int, int, int, int) in BRenderSDL.o
"_SDL_SetColorKey", referenced from:
CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
"_SDL_SetError", referenced from:
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_SetHint", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
CBSurfaceSDL::Create(char*, bool, unsigned char, unsigned char, unsigned char, int, bool) in BSurfaceSDL.o
"_SDL_SetRenderDrawBlendMode", referenced from:
CBRenderSDL::FadeToColor(unsigned int, tagRECT*) in BRenderSDL.o
CBRenderSDL::DrawLine(int, int, int, int, unsigned int) in BRenderSDL.o
"_SDL_SetRenderDrawColor", referenced from:
CBRenderSDL::Fill(unsigned char, unsigned char, unsigned char, tagRECT*) in BRenderSDL.o
CBRenderSDL::FadeToColor(unsigned int, tagRECT*) in BRenderSDL.o
CBRenderSDL::DrawLine(int, int, int, int, unsigned int) in BRenderSDL.o
"_SDL_SetRenderTarget", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
CBRenderSDL::SendRenderingHintSceneComplete() in BRenderSDL.o
CBRenderSDL::EraseBackground() in BRenderSDL.o
"_SDL_SetTextureAlphaMod", referenced from:
CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_SetTextureBlendMode", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_SetTextureColorMod", referenced from:
CBSurfaceSDL::DrawSprite(int, int, tagRECT*, float, float, unsigned int, bool, TSpriteBlendMode, bool, bool, int, int, int, int, float) in BSurfaceSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_SetWindowDisplayMode", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
"_SDL_SetWindowFullscreen", referenced from:
CBRenderSDL::SwitchFullscreen() in BRenderSDL.o
"_SDL_SetWindowTitle", referenced from:
CBGame::SetWindowTitle() in BGame.o
"_SDL_ShowCursor", referenced from:
CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in BRenderSDL.o
CBPlatform::HandleEvent(SDL_Event*) in PlatformSDL.o
CBPlatform::SDLEventWatcher(void*, SDL_Event*) in PlatformSDL.o
"_SDL_UnlockSurface", referenced from:
CBFontTT::RenderTextToTexture(std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&, int, TTextAlign, int, int&) in BFontTT.o
CBSurfaceSDL::GenAlphaMask(SDL_Surface*) in BSurfaceSDL.o
GlyphInfo::SetGlyphImage(unsigned long, unsigned long, unsigned long, unsigned char*) in FontGlyphCache.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_UnlockTexture", referenced from:
CBSurfaceSDL::FillTexture(void const*, int, CBSurfaceSDL*) in BSurfaceSDL.o
"_SDL_UpdateTexture", referenced from:
CBSurfaceSDL::FillTexture(void const*, int, CBSurfaceSDL*) in BSurfaceSDL.o
SdlUtil::CreateTextureFromSurface(SDL_Renderer*, SDL_Surface*) in SdlUtil.o
"_SDL_WarpMouseInWindow", referenced from:
CBPlatform::SetCursorPos(int, int) in PlatformSDL.o
"std::string::find(char const*, unsigned long) const", referenced from:
Iex::throwErrnoExc(std::string const&, int) in libfreeimage.a(IexThrowErrnoExc.o-i386)
"std::string::find(std::string const&, unsigned long) const", referenced from:
_write_iptc_profile in libfreeimage.a(IPTC.o-i386)
"std::string::rfind(char, unsigned long) const", referenced from:
Imf::ChannelList::layers(std::set<std::string, std::less<std::string>, std::allocator<std::string> >&) const in libfreeimage.a(ImfChannelList.o-i386)
"std::string::substr(unsigned long, unsigned long) const", referenced from:
_write_iptc_profile in libfreeimage.a(IPTC.o-i386)
"std::string::compare(std::string const&) const", referenced from:
std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::find(std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::lower_bound(std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::upper_bound(std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::pair<std::string const, FITAG*> const&) in libfreeimage.a(BitmapAccess.o-i386)
std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::insert_unique(std::pair<std::string const, FITAG*> const&) in libfreeimage.a(BitmapAccess.o-i386)
std::_Rb_tree<std::string, std::pair<std::string const, FITAG*>, std::_Select1st<std::pair<std::string const, FITAG*> >, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::insert_unique(std::_Rb_tree_iterator<std::pair<std::string const, FITAG*> >, std::pair<std::string const, FITAG*> const&) in libfreeimage.a(BitmapAccess.o-i386)
std::map<std::string, FITAG*, std::less<std::string>, std::allocator<std::pair<std::string const, FITAG*> > >::operator[](std::string const&) in libfreeimage.a(BitmapAccess.o-i386)
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing first 200 notices only
It's longer but I pasted just a fraction of it.