www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/30/07:01:29

Xref: news2.mv.net comp.os.msdos.djgpp:6565
From: j DOT hendriks AT student DOT utwente DOT nl (Jasper Hendriks)
Newsgroups: comp.os.msdos.djgpp
Subject: Problem with undefined references in DJGPP v2.0
Date: 28 Jul 1996 13:52:44 GMT
Organization: Jaz Electronics
Lines: 23
Message-ID: <4tfrbc$5e7@dinkel.civ.utwente.nl>
NNTP-Posting-Host: wit393115.student.utwente.nl
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!

Im experiencing a problem when i compile (gcc test.cc) the following 
program:

#include <stdio.h>
void main()
{
  cout << "hello world!";
}

I get the following message:
test.cc(.text+0x37): undefined reference to `cout'
test.cc(.text+0x3c): undefined reference to `ostream::operator<<(char const 
*)'

If i use printf, everything compiles and runs fine.

It would be great if someone could help me out on this...

Cya!


- Raw text -


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