delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/06/03/17:55:43

Date: Thu, 3 Jun 93 15:17:04 -0600
From: Shui Tan <stan AT diamond DOT idbsu DOT edu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: C++ not working

I downloaded the djgpp1.10/gcc241.
The first problem I had was I couldn't find the include files for C.
So, I copied all the .h files from the older version djgpp I had. Am I
suppose to do that or the files are hidden some where?

The second problem is I can't get the C++ work. Here is the program
I tried to complie.

#include <stream.h>

main()
{
	cout << "hello, world\n";
}
C:DJ241\PROG>gcc -o test test.cc
c:/tmp/ccb00054(.text+1c): undefined reference to `cout'
c:/tmp/ccb00054(.text+21): undefined reference to `operator<<(ostream &, const
char *)'

C:\DJ241\PROG>

Any idea what's going on? I set all the envior variable in the autoexec.bat
file as the readme file said.

Thanx for the help!

- Raw text -


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