Date: Mon, 15 Jun 1998 17:10:20 +0300 (IDT) From: Eli Zaretskii To: vicking AT etud DOT insa-tlse DOT fr cc: djgpp AT delorie DOT com Subject: Re: minor problem with c++ In-Reply-To: <199806151232.OAA22991@jaures.etud.insa-tlse.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 15 Jun 1998 vicking AT etud DOT insa-tlse DOT fr wrote: > it doesn't work with gcc -o hello.exe hello.cc > undefined reference to cout > undefined reference to operator<< > > i must specify to link with stdcxx lib : > gcc -o hello.exe hello.cc -lstdcxx works well > > Is there a way to specify to automatically include stdcxx when linking > c++ ??? This is all in the docs (e.g. README.1ST): you need to use gxx instead of gcc, if you don't want to add -lstdcxx by hand.