Page 1 of 1

dem lit error messages

PostPosted: Wed Oct 17, 2018 3:37 pm
by Epsilon
Seriously though, I have encountered this error too many times And I have no idea what it means.
I usually just change my code to something else (trial and error :( )

googles tells me this "unexpected delaration" is because of a missing header file, but that's not the case for GE.
So what i am asking is What does it mean?

Re: dem lit error messages

PostPosted: Wed Oct 17, 2018 3:58 pm
by lcl
You can only declare variables at the beginning of a scope. Move your FILE * declaration above the other code inside the function and it works. The error message indicates that GE is trying to treat the memset as a variable declaration.

Re: dem lit error messages

PostPosted: Wed Oct 17, 2018 4:05 pm
by Epsilon
Thank you so much! it worked :D

I guess that is just for GE compiler? cuz other compilers don't complain about it.

Re: dem lit error messages

PostPosted: Mon Oct 22, 2018 5:05 am
by lcl
It's not just for GE, it is for the old version of C that GE uses. I'm not sure which version it is, but anyway.