| delorie.com/archives/browse.cgi | search |
| From: | Tron <l42794 AT alfa DOT ist DOT utl DOT pt> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Install/compile woes. W95, Djjgpp v2 |
| Date: | Tue, 5 May 1998 15:51:10 +0100 |
| Organization: | Instituto Superior Tecnico |
| Lines: | 28 |
| Message-ID: | <Pine.OSF.3.96.980505154934.2557C-100000@alfa.ist.utl.pt> |
| References: | <3548DA54 DOT 17DC19AC AT bc DOT sympatico DOT ca> |
| NNTP-Posting-Host: | alfa.ist.utl.pt |
| Mime-Version: | 1.0 |
| In-Reply-To: | <3548DA54.17DC19AC@bc.sympatico.ca> |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On Thu, 30 Apr 1998, ed toivanen wrote:
> Hi,
>
> I set the path to c:\djgpp\bin, and set DJGPP=c:\djgpp\djgpp.env. I can
> compile C programs fine, but when doing a basic hello program in cpp, I
> get error messages.
>
> #include <iostream.h>
> int main(void){
>
> cout << "Hello." << endl;
>
> return (0);
> }
> Any ideas?
heres one... try to rename the file to main.cc and compile it...
gcc doesnt compile files.cpp but theres no problem with files.cc
this for C++
bye...
-------------------------------------------
end of line.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |