Mail Archives: djgpp/1997/10/11/09:51:53
Steve wrote:
>
> I've just set up DJGPP and RHIDE, and I had it going fine for a while,
> but there was an intermittent error which has now come back and it's
> driving me nuts.
>
> I'm running RHIDE under Win3.1, using a default project (rhide.gpr),
> which I don't open at startup but which contains all my preferences
> for colours etc.
>
> The problem is that when I try and compile code, I get the following
> error message:
>
> "There were some errors"
>
> Which as you can imagine doesn't tell me very much. I've tried passing
> different arguments to the compiler, including -Wall and -v, but no
> luck. What am I doing wrong?
>
> BTW - I have checked the FAQ, I might be just missing something
> obvious but I haven't found an answer there. I am a complete novice,
> but I can't see why this code won't compile:
>
> void main()
> {
> }
>
> Any help would be greatly appreciated!
>
> -------------------------------------------------------
> Steve Long
> to reply please remove the NOSPAM from my email address
Hi Steve,
Believe me, I'm no expert on C but shouldn't there be a "return" or
"exit 0" at the end.
Also, in the messes that I've tried to turn into programs, before the
"There were some errors" line, there has always been a list of line
numbers with things like "parse error before return 0" or anyone of a
few dozen other error messages that frequent my screen. Perhaps if you
said what was before the last message, someone who actually knows what
they're doing could help you (that wouldn't be me, but hey, everybody
was a newbie at some point).
Frank
- Raw text -