dem lit error messages

You must understand the Game Editor concepts, before post here.

dem lit error messages

Postby Epsilon » Wed Oct 17, 2018 3:37 pm

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?
Attachments
GE Error Message.PNG
User avatar
Epsilon
 
Posts: 11
Joined: Fri Jun 23, 2017 5:15 pm
Location: 418
Score: 0 Give a positive score

Re: dem lit error messages

Postby lcl » Wed Oct 17, 2018 3:58 pm

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.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: dem lit error messages

Postby Epsilon » Wed Oct 17, 2018 4:05 pm

Thank you so much! it worked :D

I guess that is just for GE compiler? cuz other compilers don't complain about it.
User avatar
Epsilon
 
Posts: 11
Joined: Fri Jun 23, 2017 5:15 pm
Location: 418
Score: 0 Give a positive score

Re: dem lit error messages

Postby lcl » Mon Oct 22, 2018 5:05 am

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.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score


Return to Advanced Topics

Who is online

Users browsing this forum: No registered users and 1 guest