| delorie.com/archives/browse.cgi | search |
| From: | Rodeo Red <rodeored AT netstep DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Read Me Third: A Short FAQ List |
| Date: | Wed, 27 Oct 1999 18:50:31 -0400 |
| Organization: | Church of Evangelical Environmental Extremism |
| Lines: | 56 |
| Message-ID: | <0A02668AA6DAF2EA.B7324B0997533B2E.A43653802EA26ABD@lp.airnews.net> |
| X-Orig-Message-ID: | <381781B5 DOT EADB2A8F AT netstep DOT net> |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 991020140410 DOT 22660f-100000 AT is> |
| Abuse-Reports-To: | support at netstep.net to report improper postings |
| NNTP-Proxy-Relay: | library1.airnews.net |
| NNTP-Posting-Time: | Wed Oct 27 17:49:49 1999 |
| NNTP-Posting-Host: | !c?O6-@[.@boR^Z (Encoded at Airnews!) |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 4.5 [en] (Win98; I) |
| X-Accept-Language: | en |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Eli Zaretskii wrote:
> >On Tue, 19 Oct 1999, Rodeo Red wrote:
> >I would still like to find out why the redirect doesn't work.
>
> Me too. Let's try to find out. For starters, does the "Bad command"
> message happen for *any* program you invoke via REDIR?
The redirect works now without any error messages so I guess I'll never know why
it didn't work before.
Back to my original attempt to get djgpp to compile : This is my current version
of Hello.cpp:
#include <iostream.h>
int main (void);
{
cout <<"Hello world!\n";
}
I believe this declares the main function in the correct way . However, when I tru
to compile it this does not create an hello.o program as it should. I get: :
C:\djgpp>gcc -c -Wall hello.cpp
hello.cpp:4: parse error before `{'
What am I missing now ?
-----------------------------------------------
What happened when I went to the faq:
I Found:
8.3 GCC barfs on C++-style comments in C programs
Q: My C program compiles OK with Borland's C, but GCC complains about "parse error
before `/' " at a line where I
have a "//"-style comment.
I have no comments so I doesn't seem to apply
I Found:
8.21 What's wrong with sys/movedata.h?
Q: Whenever I try to compile a program that includes the sys/movedata.h header
file, I get "parse error" messages
from the compiler. Can't you guys make your system headers right?
My program does not include the sys/movedata.h header file so it doesn't seem to
apply
---------------------------------------------------
Red
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |