| www.delorie.com/archives/browse.cgi | search |
| From: | vicking AT etud DOT insa-tlse DOT fr |
| Date: | Mon, 15 Jun 1998 14:32:25 +0200 |
| Message-Id: | <199806151232.OAA22991@jaures.etud.insa-tlse.fr> |
| To: | djgpp AT delorie DOT com |
| Subject: | minor problem with c++ |
I try the mythic hello world :
#include <iostream.h>
int main(int argc,char **argv)
{
cout<<"hello world !";
retutn 0;
}
with version 2.8 of gcc
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++ ???
thanx for advance
vicking
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |