www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/14/17:49:45

Date: Sun, 14 Jan 1996 15:46:25 -0700 (MST)
From: Evermore <airutz AT acs DOT ucalgary DOT ca>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: I can't compile C++...

Ahhhhhh!
I've been using djgpp flawlessly for months now - at least until I moved 
up to C++. I got the gpp*.* and lgp*.* files, unzipped them and 
everything seemed to work. Now I can still compile C progs fine, but I 
get miles of errors trying to compile any C++ code. When I compiled with 
"-v", it recognized that the file was indeed C++, and it went on it's 
merry way until it started spitting out errors when it saw cin and cout 
(BTW, I did #include<iostream.h>). It didn't give me line numbers for 
where the error occured, so I can only assume the error came from 
somewhere in the guts of gcc itself. It's not even a useful program! It's 
just some 10 line C++ prog so I could check if it was working. It says 
"gcc" is supposed to know what to do with a C++ file (i.e. you don't need 
to use "g++" to compile).

The strange thing is, when I compile the prog using "gcc" on UNIX I get 
the same error messages as when I compile using "gcc" on DOS. Of course, 
on UNIX, compiling it with "g++" works fine. Unfortunatly, there is no 
"g++" command for djgpp (at least not in the files I've got)...

Any help would be well received!
Thanks



- Raw text -


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