X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Tomasz Dobek Newsgroups: comp.os.msdos.djgpp Subject: Huge differences in compilation time between gcc/gpp Date: Wed, 10 Apr 2002 19:28:35 +0200 Organization: Noname team Lines: 13 Message-ID: NNTP-Posting-Host: staticline131.toya.net.pl X-Trace: sunsite.icm.edu.pl 1018459695 17503 217.113.226.64 (10 Apr 2002 17:28:15 GMT) X-Complaints-To: abuse AT icm DOT edu DOT pl NNTP-Posting-Date: Wed, 10 Apr 2002 17:28:15 +0000 (UTC) X-Newsreader: MicroPlanet Gravity v2.50 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I got a one big :) question: Why program, which does print 'hello world', compiles in C compiler only a few seconds, but in C++ a few minutes (!). In C I use stdio.h library but in C++ iostream.h is used by me. I guess that the problem is a compilation of iostream, which is done everytime I compile sth in C++. Can be something done to speed up this process ? Is possible to for example make compilation of iostream once, and then everytime use the compiled output of this library to link with my program ?