Page 1 of 1

Can't compile using wxWidgets as DLL (v2.8.10)

Posted: Wed Aug 05, 2009 4:22 pm
by easyw
Hi to all!
I tried to upgrade the wxmsw28_gl_gcc_custom.dll that I successfully built with wxWidgets-2.8.6 (following this topic
http://forums.wxwidgets.org/viewtopic.php?t=14007 ) using the new wxWidgets 2.8.10
I compiled the DLL using the commands:
set WXWIN=c:\wxWidgets-2.8.10
set path=c:\Dev-Cpp\bin;%path%
mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 USE_OPENGL=1 RUNTIME_LIBS=static USE_RTTI=0 USE_EXCEPTIONS=1 SHARED=1
and I obtained the wxmsw28_gl_gcc_custom.dll, but when I launch an executable that is built relaying on the DLL I receive the following error:
The application failed to initialize properly (0xc0000005)
and this is the report on Vista Home Premium (same prob in XP):
Problem signature:
Problem Event Name: APPCRASH
Application Name: Project2.exe
Application Version: 0.0.0.0
Application Timestamp: 4a79a59e
Fault Module Name: wxmsw28_gcc_custom.dll
Fault Module Version: 2.8.10.0
Fault Module Timestamp: 4a799c4f
Exception Code: c0000005
Exception Offset: 0005be73
OS Version: 6.0.6001.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 7cc8
Additional Information 2: 8ca3848b0bd396e95688544d3244d95b
Additional Information 3: baf1
Additional Information 4: 29b40bae00663bbc0510d81a4d4b3370

Please note that if I use the old dll everything works fine...

Thanx in advance for any suggestion
Maurice :)

Posted: Thu Aug 06, 2009 12:19 pm
by Sof_T
Have you rebuilt the application, it could be due to incompatabilty between the wxWidget library versions.

Posted: Thu Aug 06, 2009 5:42 pm
by easyw
Sof_T wrote:Have you rebuilt the application, it could be due to incompatabilty between the wxWidget library versions.
I did rebuild all F11... same problem...
it works with wxwidgets 2.8.3 and wxwidgets 2.8.6
I obtained the wxmsw28_gcc_custom.dll with the same batch procedure...
with wxwidgets 2.8.10 it do not work...

thanx 4 support :)

Posted: Thu Aug 06, 2009 6:51 pm
by easyw
easyw wrote: I did rebuild all F11... same problem...
it works with wxwidgets 2.8.3 and wxwidgets 2.8.6
I obtained the wxmsw28_gcc_custom.dll with the same batch procedure...
with wxwidgets 2.8.10 it do not work...

thanx 4 support :)
I re-tried to build the wxwidgets 2.8.6 and I obtained the same prob... may be the problem is the batch itself...

any suggestion is welcome :)

Posted: Thu Aug 06, 2009 7:24 pm
by easyw
easyw wrote: I re-tried to build the wxwidgets 2.8.6 and I obtained the same prob... may be the problem is the batch itself...
any suggestion is welcome :)
I found out that if I build the lib using the Mingw files from wxDevcpp 6.10.2 it works fine (with both wxwidgets 2.8.6 and 2.8.10), using the file from wxDevcpp7rc6 the wxmsw28_gcc_custom.dll do not work...
probably there is something in the mingw distributed with wxdevcpp7RC6 that is missing something....

Posted: Thu Aug 06, 2009 7:31 pm
by tbreina
easyw wrote:
easyw wrote: I re-tried to build the wxwidgets 2.8.6 and I obtained the same prob... may be the problem is the batch itself...
any suggestion is welcome :)
I found out that if I build the lib using the Mingw files from wxDevcpp 6.10.2 it works fine (with both wxwidgets 2.8.6 and 2.8.10), using the file from wxDevcpp7rc6 the wxmsw28_gcc_custom.dll do not work...
probably there is something in the mingw distributed with wxdevcpp7RC6 that is missing something....
IIRC 6.10.2 used MingW gcc 3.4.2 and 7.0 uses MingW gcc 3.4.5. I don't know if that is causing the problem (doesn't seem likely), but that's the only difference I can think of between them.

-Tony

Posted: Fri Aug 07, 2009 11:13 am
by easyw
tbreina wrote: IIRC 6.10.2 used MingW gcc 3.4.2 and 7.0 uses MingW gcc 3.4.5. I don't know if that is causing the problem (doesn't seem likely), but that's the only difference I can think of between them.

-Tony
I found a similar issue related to mingw 3.4.5 ...
http://article.gmane.org/gmane.comp.lib ... eral/59957

has any one found a solution?

thanx :)