delorie.com/archives/browse.cgi | search |
Date: | Mon, 15 Jun 1998 17:10:20 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
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: | <Pine.SUN.3.91.980615170928.10875A-100000@is> |
MIME-Version: | 1.0 |
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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |