www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/15/00:12:46

Message-ID: <005d01bdf7f1$31e34980$c2ee8081@bhodge>
From: "Blaine Hodge" <bhodge AT gpu DOT srv DOT ualberta DOT ca>
To: <djgpp AT delorie DOT com>
Subject: Re: Why doesn't iostream work??
Date: Wed, 14 Oct 1998 22:06:31 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

Try

gxx hello.cpp -o hello.exe

-----Original Message-----
From: Eric Weiss <eweiss AT winchendon DOT com>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: October 14, 1998 10:01 PM
Subject: Re: Why doesn't iostream work??


>I just installed djgpp and am not having any luck running this program:
>
>#include <iostream.h>
>int main(void)
>{
>   cout << "Hello" << endl;
>}
>
>D:\program files\djgpp>bin\gcc hello.cpp -o hello.exe -lgpp
>
>generates these error messages:
>
>d:/progra~1/djgpp/tmp\cccqf32k(.text+0xc):hello.cpp: undefined reference
>to `endl(ostream &)'
>d:/progra~1/djgpp/tmp\cccqf32k(.text+0x16):hello.cpp: undefined
>reference to `cout'
>d:/progra~1/djgpp/tmp\cccqf32k(.text+0x1b):hello.cpp: undefined
>reference to `ostream::operator<<(char const *)'
>d:/progra~1/djgpp/tmp\cccqf32k(.text+0x26):hello.cpp: undefined
>reference to `ostream::operator<<(ostream &(*)(ostream &))'
>
>I've tried this on 95 and NT with the same results (although NT required
>me to follow the instructions relative to long file names).
>
>Any ideas?
>
>Thanks.
>
>Eric
>
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019