Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Problem with linker in windows c++
- - By Richy Date 2012-09-27 21:16
Hi all!

I am here because I need some help with the library, I use windows 7 and Visual C++ 2008. I did all the things displayed in the "Getting Started on Windows" but when I press "play", the linker do some errors and I do not know why (I have put the "Multithreaded Debug" in "Runtime Library"):

1>GosuDebug.lib(WindowWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(WindowWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(WinUtility.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(WinUtility.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(InputWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(InputWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Graphics.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(Graphics.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(AudioOpenAL.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(AudioOpenAL.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(TimingWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(TimingWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(TextInputWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(TextInputWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Color.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(Color.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Transform.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(Transform.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Texture.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(Texture.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(BitmapUtils.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(BitmapUtils.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(LargeImageData.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(LargeImageData.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Bitmap.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(Bitmap.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(IO.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(IO.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(FileWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(FileWin.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Math.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(Math.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(BlockAllocator.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(BlockAllocator.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(TexChunk.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(TexChunk.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(BitmapGDIplus.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(BitmapGDIplus.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Utility.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(Utility.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(BitmapColorKey.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_MSC_VER=1600' no válida; se omitió
1>GosuDebug.lib(BitmapColorKey.obj) : warning LNK4229: se encontró la directiva '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2' no válida; se omitió
1>GosuDebug.lib(Utility.obj) : error LNK2019: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver al que se hace referencia en la función "public: void __thiscall std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> >::_Eos(unsigned int)" (?_Eos@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAEXI@Z)
1>GosuDebug.lib(TextInputWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(BitmapUtils.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(FileWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(BitmapGDIplus.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(WindowWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(WinUtility.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(InputWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(AudioOpenAL.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(BitmapColorKey.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(BlockAllocator.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(TexChunk.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(BitmapGDIplus.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(Utility.obj) : error LNK2019: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver al que se hace referencia en la función "public: class std::_Vector_iterator<class std::_Vector_val<char,class std::allocator<char> > > __thiscall std::_Vector_iterator<class std::_Vector_val<char,class std::allocator<char> > >::operator+(int)const " (??H?$_Vector_iterator@V?$_Vector_val@DV?$allocator@D@std@@@std@@@std@@QBE?AV01@H@Z)
1>GosuDebug.lib(LargeImageData.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(Bitmap.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(IO.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(FileWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(AudioOpenAL.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(TextInputWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(Texture.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(BitmapUtils.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(WindowWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(WinUtility.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(InputWin.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(Graphics.obj) : error LNK2001: símbolo externo "void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z) sin resolver
1>GosuDebug.lib(InputWin.obj) : error LNK2019: símbolo externo "struct std::_Smanip<__int64> __cdecl std::setw(__int64)" (?setw@std@@YA?AU?$_Smanip@_J@1@_J@Z) sin resolver al que se hace referencia en la función "public: static void __cdecl Gosu::Input::Impl::throwError(char const *,long)" (?throwError@Impl@Input@Gosu@@SAXPBDJ@Z)
1>GosuDebug.lib(InputWin.obj) : error LNK2001: símbolo externo "__int64 const std::_BADOFF" (?_BADOFF@std@@3_JB) sin resolver
1>GosuDebug.lib(InputWin.obj) : error LNK2019: símbolo externo "class std::error_category const & __cdecl std::iostream_category(void)" (?iostream_category@std@@YAABVerror_category@1@XZ) sin resolver al que se hace referencia en la función "class std::error_code __cdecl std::make_error_code(enum std::io_errc::io_errc)" (?make_error_code@std@@YA?AVerror_code@1@W4io_errc@31@@Z)
1>GosuDebug.lib(InputWin.obj) : error LNK2019: símbolo externo "private: static void __cdecl std::locale::facet::_Facet_Register(class std::locale::facet *)" (?_Facet_Register@facet@locale@std@@CAXPAV123@@Z) sin resolver al que se hace referencia en la función "public: void __thiscall std::locale::facet::_Register(void)" (?_Register@facet@locale@std@@QAEXXZ)
1>C:\Users\Richy\Documents\Visual Studio 2008\Projects\Gosu\Debug\Gosu.exe : fatal error LNK1120: 6 externos sin resolver
1>El registro de compilación se guardó en el "file://c:\Users\Richy\Documents\Visual Studio 2008\Projects\Gosu\Gosu\Debug\BuildLog.htm"
1>Gosu - 31 errores, 42 advertencias
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
Parent - - By jlnr (dev) Date 2012-09-27 23:35
Ouch - sorry. :( I forgot to update the docs, the last version of Gosu is built for Visual C++ 2010. Is it feasible for you to update? 2010 has much better C++11 support.

If you don't feel like messing with MSVC right now, you can go one or two versions back - these were still built with/for MSVC 2008.
Parent - - By Richy Date 2012-09-28 07:54
Hi again! Thanks by the help, that was usefull, but I have another problem right now with visual c++ 2010. I press "play" and display to me this errors at the same order that I put here (I press "retry" (reintentar) or "continuous" (continuar) in all case, if I do not press retry or continuous the program broke and fail) at the end, I can see the windows how I programmed before. By the way, I do not know where I can download the latests versions of the Gosu. Thanks for the help again and sorry for my english :) :









Parent - - By jlnr (dev) Date 2012-09-28 15:15
This is a weird error - can you paste the code of your program? Is it the one from the wiki page? Hmm...

The latest version of Gosu is always somewhere in http://www.libgosu.org/downloads/
Parent - - By Richy Date 2012-09-29 00:33
I meant old versions, sorry :P, and yeah, is the same code from the wiki page I will put it anyway. I prove compile the code on other computer and work fine, maybe I must install something on the first computer :/ :

#include <Gosu/AutoLink.hpp>
#include <Gosu/Window.hpp>

class MyWindow : public Gosu::Window
{
public:
    MyWindow()
    :   Window(640, 480, false, 20)
    {
        setCaption(L"Hello World!");
    }
};

int main()
{
    MyWindow window;
    window.show();
}
Parent - - By jlnr (dev) Date 2012-09-29 01:46
I think it's a bug in Gosu's handling of the command line. Is there any non-ASCII-character in the path of the program? A ñ or ç or something like that?
Parent - - By Richy Date 2012-10-01 16:17
The path was a non-ASCII-character like you said it (º), so I move the directory to other side and work. But I have another problem with "examples",  when I press "play" the "Tutorial.cpp" code, the visual studio display an error: "Excepción no controlada en 0x75f8b9bc en Gosu.exe: 0xC06D007E: Module not found". And mark me "return dli.pfnCur;"
Parent - - By jlnr (dev) Date 2012-10-02 11:28
If you continue, or try to run the compiled EXE outside of Visual C++, does it say which "module" it is missing?

I suspect that the OpenAL32.dll cannot be found. It should come inside the Gosu ZIP archive, try moving it next to your game's EXE file and opening it then.
Parent - By Richy Date 2012-10-02 13:29
Thank you very much, all is ok now =). I just needed move the OpenAl32.dll and libsndfile.dll next to my EXE file.
Parent - - By jlnr (dev) Date 2012-10-07 14:43
Ouch, one week too late - but I have compiled Gosu with the fix for running inside a non-ASCII path now. Can you please try to run your game again from the path containing "°", but this time using the attached .lib files? Thanks.
Attachment: gosupreview.zip (9447k)
Parent - - By Richy Date 2012-10-09 09:37
Here I left you my new error with the news .libs, I put .dll next to my exe file:

Parent - - By jlnr (dev) Date 2012-10-11 07:42
Ouch! Can you press "Interrumpir" to see where it's happening?
Parent - By Richy Date 2012-10-16 09:40
When I press "Interrumpir" the windows closes and nothing happens
Parent - - By jlnr (dev) Date 2012-09-29 07:20
I think it was my fault, and that it is fixed. I cannot provide new library right now though, I am not at my Windows machine. :( I'll make a note to upload them here on Monday.
Parent - By Richy Date 2012-09-29 10:06
I do not remember if the path have a any non-ASCII-character, I could tell you that on Monday.

Thanks you very much for the awesome work how developer and I will tell you if all is running fine on Monday then :)
Up Topic Gosu / Gosu Exchange / Problem with linker in windows c++

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill