I am I blind or is LiteC?

Posted By: cjm

I am I blind or is LiteC? - 02/11/09 15:59

Is it beginners 'blindness' or does LiteC ignore any #include if the include filename contains an underscore '_'?
Posted By: Xarthor

Re: I am I blind or is LiteC? - 02/11/09 16:05

From the manual:
Topic: #include
Section: Remarks
Content:
Quote:

Script names must not be longer than 15 characters and must not contain spaces or nonstandard characters.


Looks like the underscore is an "nonstandard character".
Posted By: cjm

Re: I am I blind or is LiteC? - 02/11/09 16:17

Thanks for that, Rule 1 read the manual!

I would though have expected a compiler error/warning.
What happens is you get errors about undefined variables/functions it seems the include file is just ignored.
Posted By: Lukas

Re: I am I blind or is LiteC? - 02/11/09 16:56

For me, it works with underscores. Maybe you use the wrong syntax or sth like that?
Posted By: Widi

Re: I am I blind or is LiteC? - 02/11/09 18:24

With the underscores it works...
Posted By: cjm

Re: I am I blind or is LiteC? - 02/11/09 20:49

I was using underscores with a file name exceeding 15 chars!

Ok I didn't read the manual and assumed a legal Windows filename was legal, but a thumbs down from the compiler would have been helpful.
Posted By: EvilSOB

Re: I am I blind or is LiteC? - 02/12/09 05:59

You can use more then 15 characters in the name,
BUT the first 15 must be unique, otherwise the first
matching file will be used.
Posted By: Lukas

Re: I am I blind or is LiteC? - 02/12/09 20:41

Many engine functions have just a 15 chars buffer, so it is recommented not to use file names longer than 15 chars.
© 2024 lite-C Forums