Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Fatal error: out of memory - anything I can do?
I mean in terms of command-line. I don't want to split my implementation file (as it's a unittest file, that includes all headers in WinSTL) Oct 10 2004
"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckaokb$1u0f$1 digitaldaemon.com...I mean in terms of command-line. I don't want to split my implementation file (as it's a unittest file, that includes all headers in WinSTL) Oct 10 2004
Compiling the unit-test for WinSTL. It includes all the WinSTL headers, under the definition of STLSOFT_UNITTEST. "Walter" <newshound digitalmars.com> wrote in message news:ckbtie$2pgd$1 digitaldaemon.com..."Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckaokb$1u0f$1 digitaldaemon.com...I mean in terms of command-line. I don't want to split my Oct 10 2004
"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckc6i9$2vpq$1 digitaldaemon.com...Compiling the unit-test for WinSTL. It includes all the WinSTL headers, under the definition of STLSOFT_UNITTEST. "Walter" <newshound digitalmars.com> wrote in message news:ckbtie$2pgd$1 digitaldaemon.com..."Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckaokb$1u0f$1 digitaldaemon.com...I mean in terms of command-line. I don't want to split my Oct 10 2004
"Walter" <newshound digitalmars.com> wrote in message news:ckcksk$7qm$1 digitaldaemon.com..."Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckc6i9$2vpq$1 digitaldaemon.com...Compiling the unit-test for WinSTL. It includes all the WinSTL Oct 10 2004
"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckcmn8$927$1 digitaldaemon.com..."Walter" <newshound digitalmars.com> wrote in message news:ckcksk$7qm$1 digitaldaemon.com..."Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckc6i9$2vpq$1 digitaldaemon.com...Compiling the unit-test for WinSTL. It includes all the WinSTL Oct 11 2004
Walter wrote:"Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckcmn8$927$1 digitaldaemon.com..."Walter" <newshound digitalmars.com> wrote in message news:ckcksk$7qm$1 digitaldaemon.com..."Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckc6i9$2vpq$1 digitaldaemon.com...Compiling the unit-test for WinSTL. It includes all the WinSTL Oct 13 2004
Dimitri Kaparis wrote:It's hit me also. I've decided to try using the latest compiler version with the new STLPort 4.6.2 to build my project and it choke on one of my top-level classes. There's some heavy usage of all kinds of stl containers there. I tried going through my headers in the include tree and removing some inefficiencies here and there, but I don't think anything would cut it, short of probably splitting the implementation of my class. Oct 13 2004
Scott Michel wrote:Dimitri Kaparis wrote:It's hit me also. I've decided to try using the latest compiler version with the new STLPort 4.6.2 to build my project and it choke on one of my top-level classes. There's some heavy usage of all kinds of stl containers there. I tried going through my headers in the include tree and removing some inefficiencies here and there, but I don't think anything would cut it, short of probably splitting the implementation of my class. Oct 13 2004
Dimitri Kaparis wrote:Actually I was compiling with -gh, but that did not turn out to be the problem. I was trying to use STLPort Debug (_STLP_DEBUG), which was obviously bringing in too much load. Normal debug mode compiled successfully with all settings I tried, while _STLP_DEBUG crashed with "Out of memory" both with "-g" and "-gf" Oct 14 2004
There's a new switch for this in the 8.42.1 beta. "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckaokb$1u0f$1 digitaldaemon.com...I mean in terms of command-line. I don't want to split my implementation file (as it's a unittest file, that includes all headers in WinSTL) Oct 22 2004
If this is -GT, it doesn't work. I've tried from -GT10 right up to -GT1000000000. What gives? "Walter" <newshound digitalmars.com> wrote in message news:clbl2r$nbi$3 digitaldaemon.com...There's a new switch for this in the 8.42.1 beta. "Matthew" <admin stlsoft.dot.dot.dot.dot.org> wrote in message news:ckaokb$1u0f$1 digitaldaemon.com...I mean in terms of command-line. I don't want to split my implementation file (as it's a unittest file, that includes all headers in WinSTL) Feb 21 2005
It's -HPnn, nn is in megabytes. "Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cvcf3q$2d9q$1 digitaldaemon.com...If this is -GT, it doesn't work. I've tried from -GT10 right up Feb 26 2005
Ah! LOL Anyway, is no matter now. This issue has spurred me into what is now a nicer solution for the STLSoft unittests. I now have a Ruby script - what else?! - that examines the STLSoft directory and sub-dirs for all .h and .hpp, and creates a bunch of unittest files: 10 each for STLSoft, ACESTL ATLSTL, COMSTL, ..., WinSTL, WTLSTL. Each unittest source file contains at most 20 header files from the respective project. Furthermore, the compiler (in)compatibilities are now marked in the header files, and so the unittest file contains conditional inclusion, as in: // From rangelib/indexed_range.hpp /* ///////////////////////////////////////////////////////////////////////////// * Compatibility */ /* [Incompatibilies-start] __STLSOFT_COMPILER_IS_BORLAND: __STLSOFT_COMPILER_IS_MWERKS: (__MWERKS__ & 0xFF00) < 0x3000 [Incompatibilies-end] */ which results in ..\test\rangelib\unittest.0.cpp containing: #include <H:\STLSoft\Identities\STLSoft\stlsoft\inprogress\rangelib\associative_range.hpp> #if !defined(__STLSOFT_COMPILER_IS_BORLAND) && \ !(defined(__STLSOFT_COMPILER_IS_MWERKS) && ((__MWERKS__ & 0xFF00) < 0x3000)) # include <H:\STLSoft\Identities\STLSoft\stlsoft\inprogress\rangelib\indexed_range.hpp> #endif #include <H:\STLSoft\Identities\STLSoft\stlsoft\inprogress\rangelib\operator_adaptors.hpp> Since this is all auto-generated (along with the unittest makefiles for all projects for all supported compilers), the single point of compatibility truth is in the header itself, which helps enormously. Furthermore, because the unittest inclusions are partitioned into a set of fully auto-generated source files, linked to one 'main()' unittest file, the auto-generation is far easier than it was last year. And now the only compiler that hangs with the reduced code size per unittest file is VC++ 5.0, which I'm all but about to junk support for anyway. (The only reason I've kept it so far is that all the Synesis Software DLLs are still built with it ... he he.) So, in summary, I'm glad DMC++ had a spat since it's resulted in me having a far better unitttest generation toolset than before. Cheers Matthew P.S. All that remains to do now is to get DMC++ fully compatible with the current RangeLib, which relies on it having a teensy bit better SFINAE support ... ;) "Walter" <newshound digitalmars.com> wrote in message news:cvq9vn$ric$1 digitaldaemon.com...It's -HPnn, nn is in megabytes. "Matthew" <admin.hat stlsoft.dot.org> wrote in message news:cvcf3q$2d9q$1 digitaldaemon.com...If this is -GT, it doesn't work. I've tried from -GT10 right up Feb 26 2005
|