Message-ID: <3662FD53.D82577BB@montana.com> Date: Mon, 30 Nov 1998 13:17:23 -0700 From: bowman X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: gcc and g++ problem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Krian Upapatthangkoon wrote: > > I have a problem with gcc not calling g++ when compiling C++ code, even with a > cpp extenstion. gcc seems to treat every file as a C-only file, giving me the > usual errors that happen in that case. what gcc doesn't do is automatically link in the required C++ libraries. 'gcc myprog.cpp -lstdcxx' should work, producing both a.exe and a.out. See the FAQ, 8.7 for further explanation.