From: "Michael Zufferey" on
Hello,

I am trying to compile wxWidgets 2.6.3-RC1 with GCC 4.1.0, but I get this
error:

----------------------------------------------------------------------------
.../../src/msw/ole/activex.cpp: At global scope:
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK0()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK1()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK2()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK3()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK4()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK5()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK6()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK7()' aliased to
undefined symbol '_ZN9FrameSite7ReleaseEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK8()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK9()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK10()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK11()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK12()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK13()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK14()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
.../../src/msw/ole/activex.cpp:854: error: 'ULONG *LTHUNK15()' aliased to
undefined symbol '_ZN9FrameSite6AddRefEv'
c:\MinGW\bin\mingw32-make: *** [gcc_mswudll\monodll_activex.o] Error 1
----------------------------------------------------------------------------

Practically, I have installed MinGW 5.0.2, updated win32api and binutils
header files, installed gcc 3.4.5 and installed gcc 4.1.0.

To compile wxWidgets, I have used:

1) Opened a cmd windows
2) cd C:\temp\wxWidgets-rc1-2.6.3\build\msw
3) C:\MinGW\bi\mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1
BUILD=release UNICODE=1 VENDOR=cb clean
4) C:\MinGW\bi\mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1
BUILD=release UNICODE=1 VENDOR=cb

But after some minutes, I get the above mentioned error. With gcc 3.4.4 I
have compiled it fine.

I am doing something wrong or there is an error in wxWidgets 2.6.3-RC1?

Thank you very much.

Best wishes,
Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Ryan Norton on
Looks like some of your headers (winapi/glib) are out of sync with your
compiler version, either that or its a gcc optimization error, but I'm
going to go with the former for now.

Ryan


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Ryan Norton on
Well, that was a little brief. To explain the 4.x gcc series changed a
lot of the aliasing stuff present in previous releases (I think it sort
of like c++ function overloading in c).

Anyway, it could also be a bug in mingw's headers as well, if you still
can't get it to work I'd try the mingw cvs or something... and if that
doesn't work well let me know and I'll try it here and/or file a bug...

Ryan


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org