News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

#Include files

Started by Alex777, December 31, 2005, 07:25:51 AM

Previous topic - Next topic

Alex777

I note that the #Include file compiler directive has these limitations:

- it cannot be used with CurrentDir$
- it cannot contain a line break _ character
- you cannot have more than 1 #Include in a project

The combination of these things means you can have a pretty long #Include line.  Can these things be fixed some time?

empty

QuoteI note that the #Include file compiler directive has these limitations:

- it cannot be used with CurrentDir$
CurrentDir$ is a runtime only function while #Include is a compile time directive. However, #Include is supposed to be used for libraries that are located "Library folders". By default these are "PayBasicPath\Libraries" and "PlayBasicPath\Slib". You can add more paths from within the IDE (Extra-> Preferences-> library). If the files are located there you don't need to specify the full path to them.


Quote- it cannot contain a line break _ character
Good point. :)

Quote- you cannot have more than 1 #Include in a project
You can have multiple #Include directives (even recursive).


QuoteThe combination of these things means you can have a pretty long #Include line. Can these things be fixed some time?
A more immediate goal is it to have libraries compiled on their own, so they are separate modules. That would make libary management a lot easier.

Alex777

Thanks, empty, for the clarification.