www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/08/21:30:35

Message-Id: <199711090229.LAA21046@skip97.letter.co.jp>
To: djgpp AT delorie DOT com
Subject: Re: undefined references
From: Jun Hashimoto <jun2 AT skip97 DOT letter DOT co DOT jp>
References: <34654D36 DOT 7518 AT cs DOT huji DOT ac DOT il>
Date: Sun, 09 Nov 1997 11:30:40 +0900
Mime-Version: 1.0

In message <34654D36 DOT 7518 AT cs DOT huji DOT ac DOT il>
   "undefined references"
   "Ofer Corshid <oferco AT cs DOT huji DOT ac DOT il>" wrote:

> I have the file myfile.cc:
> #include <iostream.h>
> 
> void main() 
> {
>     cout << "test";
> }
> 
> When I enter this command:
> gcc myfile.cc -o myfile.exe
> 
> I get this messages:
> undefined reference to 'cout'
> undefined reference to 'ostream::operator<<(char const *)'
> 
> Why???
 

Try this command:
gxx myfile.cc -o myfile.exe

Jun

- Raw text -


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