Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / #include "xxx.abc" error

Author
Message
The Daddy
15
Years of Service
User Offline
Joined: 13th Jan 2009
Location: Essex
Posted: 22nd May 2012 15:21
Hi All

Just split up my project a little as one does and had the following line of code:



Which threw up an error saying it could not include the file
[#include "xxx.agc" //Include setup & Functions for xxx"]

The comments where not detected as so!?

Constantly seeking!
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 22nd May 2012 15:35
Is the agc file placed in the project folder?

If it isn't you need to write #include "../folder/filename.agc"
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 22nd May 2012 16:02
The Daddy is talking about the comments on the end of the line. I think this has been reported before, but if not, you should post it on the google bug board.
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 24th May 2012 18:43
I don't think you can add comments after a command, only on lines with no commands in them.

----------------
AGK user - novice
Did Amiga / AMOS programming in the 90's, just started programming again with AGK.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 24th May 2012 19:13
Comments at the end of a command are fine in most cases, but obviously not on #include statements.

This compiles just fine, check it and see:

Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th May 2012 19:18
It's a parser thing.

If someone didn't think that it was likely, they didn't add the right code in the parser.

I know that I can use a wide variety of comment indicators:


So, you can't really blame someone for not catching all cases.

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-11-23 13:49:38
Your offset time is: 2024-11-23 13:49:38