Problems with MSVC6.0

Juan José Andrés Gutiérrez jjangu@tid.es
Wed Jul 17 03:56:00 GMT 2002


Hello,

I have problems to compile a X-Window program with Visual C++ 6.0.  The
problem is that I convert the DLL libx11.dll and libxmuu.dll to
libx11.lib and libxmuu.lib the linker generate several errors:

          libX11.lib(libX11.obj) : warning LNK4078: multiple
          ".edata" sections found with different attributes
          (C0100000)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__calloc already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__cygwin_detach_dll already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__cygwin_internal already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__dll_dllcrt0 already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__fprintf already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__fputs already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005: __nm__free
          already defined in libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__gethostname already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__malloc already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__realloc already defined in
          libX11.lib(libX11.obj)
          libXmuu.lib(libXmuu.obj) : error LNK2005:
          __nm__strcmp already defined in
          libX11.lib(libX11.obj)
          Debug/xlsclients.exe : fatal error LNK1169: one or
          more multiply defined symbols found

    As I can use these DLL in a program written with Visual C++?



Thanks.



More information about the Cygwin-xfree mailing list