Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!swbatl!texbell!nuchat!moray!urchin!f506.n106.z1.fidonet.org!Roy.Browning From: Roy.Browning@f506.n106.z1.fidonet.org (Roy Browning) Newsgroups: comp.lang.c++ Subject: Problem with Zortech C++ Message-ID: <18673.24DD881E@urchin.fidonet.org> Date: 6 Aug 89 06:42:53 GMT Sender: ufgate@urchin.fidonet.org (newsout1.26) Organization: FidoNet node 1:106/506 - Fulcrum's Edge, Spring TX Lines: 38 > From: mardm@levels.sait.edu.au > Date: 31 Jul 89 16:31:50 GMT > Organization: Sth Australian Inst of Technology > Message-ID: <937@levels.sait.edu.au> > Newsgroups: comp.lang.c++ > I've discovered what could be a problem in the Zortech C++ Compiler > main() > {TestClass * mymenu = new TestClass(); > delete TestClass; > } > O.K. so the obvious "solution" is to use the optimiser! But I can't > afford the > time (the system takes > 20 minutes to fully compile as it is). > Oh yes, my setup: > 12MHz AT Compat, 66 Meg Voice Coil HD with Cache & Co-Processor. > Riccardo Macri, > Graduate, C++ Programmer (S/W Development) > S.A.I.T. (Levels) main() { TestClass a; } Riccardo: I managed to compile and duplicate your problem by changing the "main()" as above. To be honest your code confused me. For to me a "class" is fundamentally a type defined structure tag. Thus "TestClass a;" will call the constructor. As to the compile time, your example took exactly 26.75 seconds to produce an excutable (optimized) on an IBM PC, 4.77 mhz (the slowest of the slow). You might want to break you code into modules to see which functions/members are taking so long to compile. Then you can always speed up the process by putting the object modules into a library. Hobbyist, not a professor, Roy Browning