www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/08/17:46:44

From: Ofer Corshid <oferco AT cs DOT huji DOT ac DOT il>
Newsgroups: comp.os.msdos.djgpp
Subject: undefined references
Date: Sat, 08 Nov 1997 21:42:14 -0800
Organization: The hebrew University of Jerusalem
Lines: 23
Message-ID: <34654D36.7518@cs.huji.ac.il>
Reply-To: oferco AT cs DOT huji DOT ac DOT il
NNTP-Posting-Host: dial-20-50.slip.huji.ac.il
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hye,
I thank anyone who can and will answer this question

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???

Note: I have not installed the file 'wmemu2b.zip'.

Ofer.

- Raw text -


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