delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/02/17:21:20

Message-ID: <3250D3BB.5856@ix.netcom.com>
Date: Tue, 01 Oct 1996 04:18:04 -0400
From: Dragon Slayer <dragon DOT s AT ix DOT netcom DOT com>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: cout

I have downloaded your C++ compiler and am having a problem.  first here
is my test code to get the compiler to work.

#include <iostream.h>

void main(void)
{
	cout << "hello" << endl;
}

when I compile this using:

gcc a.C or gcc a.cpp (have also tried gcc -o out a.C etc..)

it gives me this error message:

undefined reference to 'cout'
undefined reference to 'ostream::operator<<(char const *)'

I set the set djgpp=c:/programming/djgpp/djgpp.env
what's wrong????

- Raw text -


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