www.digitalmars.com         C & C++   DMDScript  

c++.wxwindows - Can't build wx2.6.2 for debug

reply Hakki Dogusan <dogusanh tr.net> writes:
Hi,

It gives out of memory. This is with latest cd-update.

It is ok with previous cd-update version.


--
Regards,
Hakki Dogusan
Oct 26 2005
parent reply Arjan <arjan ask.me> writes:
Hakki Dogusan wrote:
 Hi,
 
 It gives out of memory. This is with latest cd-update.
 
 It is ok with previous cd-update version.
 
 
 -- 
 Regards,
 Hakki Dogusan
Using precompiled headers? Add the -HPxx (32 > xx <= 99) to sc.ini or commandline. Arjan
Oct 26 2005
next sibling parent reply "W這dzimierz Skiba" <abx abx.art.pl> writes:
Arjan <arjan ask.me> wrote in news:djnhim$181s$1 digitaldaemon.com:

 Add the -HPxx (32 > xx <= 99) to sc.ini or commandline.
What's the default? Where it belongs (pch creation or pch usage)? Should I set max 99 by default in make/smake makefiles creation in bakefiles? ABX
Oct 26 2005
parent reply Arjan <arjan ask.me> writes:
W這dzimierz Skiba wrote:
 Arjan <arjan ask.me> wrote in news:djnhim$181s$1 digitaldaemon.com:
 
 
Add the -HPxx (32 > xx <= 99) to sc.ini or commandline.
What's the default? Where it belongs (pch creation or pch usage)? Should I set max 99 by default in make/smake makefiles creation in bakefiles? ABX
The default value is 32 IIRC. I use it with both creation and usage of the PCH. Don't know whether or not it makes sense but it doesn't hurt. Arjan
Oct 26 2005
parent "W這dzimierz Skiba" <abx abx.art.pl> writes:
Arjan <arjan ask.me> wrote in news:djptk9$16cl$1 digitaldaemon.com:
 What's the default? Where it belongs (pch creation or pch usage)?
 Should I set max 99 by default in make/smake makefiles creation in
 bakefiles? 
The default value is 32 IIRC. I use it with both creation and usage of the PCH. Don't know whether or not it makes sense but it doesn't hurt.
Done. Thanks! http://cvs.sourceforge.net/viewcvs.py/bakefile/bakefile/rules/makefile_defs_dmars_common.bkl?r1=1.11&r2=1.12 ABX
Oct 27 2005
prev sibling parent reply Hakki Dogusan <dogusanh tr.net> writes:
Hi,

Arjan wrote:

 Hakki Dogusan wrote:
 
 Hi,

 It gives out of memory. This is with latest cd-update.

 It is ok with previous cd-update version.


 -- 
 Regards,
 Hakki Dogusan
Using precompiled headers? Add the -HPxx (32 > xx <= 99) to sc.ini or commandline. Arjan
Thanks Arjan, I modified config.dms and set: CPPFLAGS = -HP99 With this setting debug build is ok now. What is the proper way to add this switch in sc.ini? My current sc.ini is as following: [Version] version=7.51 Build 020 [Environment] PATH=%PATH%;"% P%\..\bin" BIN="% P%\..\bin" ;hd...INCLUDE="% P%\..\include";"% P%\..\mfc\include";%INCLUDE% INCLUDE="% P%\..\STLport\stlport";"% P%\..\stlsoft";"% P%\..\include";"% P%\..\psdk\include";"% P%\..\mfc\include";%INCLUDE% LIB="% P%\..\lib";"% P%\..\psdk\lib";"% P%\..\mfc\lib";%LIB% HELP="% P%\..\help" ps: Just for curiosity, I tried to build dll version of wx: To compile, I did some -hacks-. - ./src/regex/rege_dfa.c, line:267 changed small to smal in newdfa - ./src/expat/lib/xmlparse.c, line:236 changed ELEMENT_TYPE to XELEMENT_TYPE, did a find-replace in file - ./build/msw/makefile.dms added activex.obj to dll object list before mediactrlcmn.obj line added related compile line changed rcc commands (Tiwag was mentioned that before) and removed $(MONODLL_ODEP) With these dirty changes dll is built. But generated import lib is empty. Dependency Walker shows no exported functions. I hope You have a switch to solve this problem :) Thanks again... -- Regards, Hakki Dogusan
Oct 27 2005
next sibling parent reply Arjan <arjan ask.me> writes:
Hakki Dogusan wrote:
 Hi,
 
 Arjan wrote:
 
 Hakki Dogusan wrote:

 Hi,

 It gives out of memory. This is with latest cd-update.

 It is ok with previous cd-update version.


 -- 
 Regards,
 Hakki Dogusan
Using precompiled headers? Add the -HPxx (32 > xx <= 99) to sc.ini or commandline. Arjan
Thanks Arjan, I modified config.dms and set: CPPFLAGS = -HP99 With this setting debug build is ok now. What is the proper way to add this switch in sc.ini? My current sc.ini is as following: [Version] version=7.51 Build 020 [Environment] PATH=%PATH%;"% P%\..\bin" BIN="% P%\..\bin" ;hd...INCLUDE="% P%\..\include";"% P%\..\mfc\include";%INCLUDE% INCLUDE="% P%\..\STLport\stlport";"% P%\..\stlsoft";"% P%\..\include";"% P%\..\psdk\include";"% P%\..\mf \include";%INCLUDE% LIB="% P%\..\lib";"% P%\..\psdk\lib";"% P%\..\mfc\lib";%LIB% HELP="% P%\..\help"
Add a line with: CFLAGS=-HP96 see also: http://www.digitalmars.com/ctg/sc.html#scdotini
 
 ps: Just for curiosity, I tried to build dll version of wx:
 
 To compile, I did some -hacks-.
 
 - ./src/regex/rege_dfa.c, line:267
 changed small to smal in newdfa
 
 - ./src/expat/lib/xmlparse.c, line:236
 changed ELEMENT_TYPE to XELEMENT_TYPE, did a find-replace in file
 
 - ./build/msw/makefile.dms
 
 added activex.obj to dll object list before mediactrlcmn.obj line
 added related compile line
 
 changed rcc commands (Tiwag was mentioned that before) and removed
 $(MONODLL_ODEP)
 
 
 With these dirty changes dll is built. But generated import lib
 is empty. Dependency Walker shows no exported functions.
implib.exe? There is also a option to generate the implib, take a look at http://www.digitalmars.com/ctg IIRC /IMPLIB Arjan
 
 
 I hope You have a switch to solve this problem :)
 
 Thanks again...
 
 -- 
 Regards,
 Hakki Dogusan
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Oct 27 2005
next sibling parent "W這dzimierz Skiba" <abx abx.art.pl> writes:
Arjan <arjan ask.me> wrote in news:djqj8u$1t2a$1 digitaldaemon.com:
 With these dirty changes dll is built. But generated import lib
 is empty. Dependency Walker shows no exported functions.
implib.exe? There is also a option to generate the implib, take a look at http://www.digitalmars.com/ctg IIRC /IMPLIB
IIRC that was also mentioned in thread "optlink when invoked from dmc" in c++.command-line group. Another thing which waits for inestigation for bakefiles. ABX
Oct 27 2005
prev sibling parent Hakki Dogusan <dogusanh tr.net> writes:
Hi,

Arjan wrote:

 Hakki Dogusan wrote:
 
 What is the proper way to add this switch in sc.ini?
Add a line with: CFLAGS=-HP96
Thanks.
 With these dirty changes dll is built. But generated import lib
 is empty. Dependency Walker shows no exported functions.
implib.exe?
No it did't help (That is why I mentioned DependencyWalker). The problem is in generated dll, I think. Nothing exported there!
 
 Arjan
 
Thanks... -- Regards, Hakki Dogusan
Oct 27 2005
prev sibling parent reply "W這dzimierz Skiba" <abx abx.art.pl> writes:
Hakki Dogusan <dogusanh tr.net> wrote in
news:djqh9u$1r6q$1 digitaldaemon.com: 
 ps: Just for curiosity, I tried to build dll version of wx:
 
 To compile, I did some -hacks-.
Could you please elaborate a little more about each of the hacks why it is needed (I'm unable to look into all of this myself right now but if your explanation will sound fine I will be able to blindly commit it into wxW).
 changed rcc commands (Tiwag was mentioned that before) and removed
 $(MONODLL_ODEP)
I remember thread by Tiwag but unfortunatelly had no time yet to look into that. ABX
Oct 27 2005
next sibling parent Hakki Dogusan <dogusanh tr.net> writes:
Hi,

W這dzimierz Skiba wrote:

 Hakki Dogusan <dogusanh tr.net> wrote in
 news:djqh9u$1r6q$1 digitaldaemon.com: 
 
ps: Just for curiosity, I tried to build dll version of wx:

To compile, I did some -hacks-.
[dirty hacks] - ./src/regex/rege_dfa.c, line:267 changed small to smal in newdfa (Compiler does not like small, so I changed it) - ./src/expat/lib/xmlparse.c, line:236 changed ELEMENT_TYPE to XELEMENT_TYPE, did a find-replace in file (Compilere says ELEMENT_TYPE declared as int before, I didn't look prior declaration) - ./build/msw/makefile.dms added activex.obj to dll object list before mediactrlcmn.obj line added related compile line (Otherwise missing wxActivex.. error occurs) These messages are from my memory. If you want I can re-compile.
 
 Could you please elaborate a little more about each of the hacks why it is
needed 
 (I'm unable to look into all of this myself right now but if your explanation
will 
 sound fine I will be able to blindly commit it into wxW).
 
I think, this may not the correct solution. Since everything is ok with static lib builds. (And other compilers are fine building dll with the same code )
 
changed rcc commands (Tiwag was mentioned that before) and removed
$(MONODLL_ODEP)
I remember thread by Tiwag but unfortunatelly had no time yet to look into that. ABX
Thanks... -- Regards, Hakki Dogusan
Oct 27 2005
prev sibling parent Hakki Dogusan <dogusanh tr.net> writes:
Hi,

W這dzimierz Skiba wrote:
 Hakki Dogusan <dogusanh tr.net> wrote in
 news:djqh9u$1r6q$1 digitaldaemon.com: 
 
ps: Just for curiosity, I tried to build dll version of wx:

To compile, I did some -hacks-.
Could you please elaborate a little more about each of the hacks why it is needed (I'm unable to look into all of this myself right now but if your explanation will sound fine I will be able to blindly commit it into wxW).
changed rcc commands (Tiwag was mentioned that before) and removed
$(MONODLL_ODEP)
I remember thread by Tiwag but unfortunatelly had no time yet to look into that. ABX
I attached the build process log. Hope you can find a solution. Thanks... -- Regards, Hakki Dogusan
Oct 27 2005