• Welcome to Theos PowerBasic Museum 2017.

O2: includepath

Started by José Roca, September 09, 2013, 04:07:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

José Roca

Hi Charles,

Does includepath accept more than one path?

What means the $ in includepath "$\inc\"?

I have seen in one example being used as includepath + and includepath -. Are the + and - used to add or remove a path from a list?

Do you have any plans to add an switch to the compiler, e.g. -i <paths>?

Same questions, more or less, for librarypath.

TIA

Charles Pegge

Hi José

IncludePath specifies a pathname to be prefixed to all subsequent filenames.

The final "/" or "\" should be included.

If the pathname is prefixed with '$', this symbol is expanded to the full compiler execution path. Thus the pathname will be relative to the location of the compiler (or other host application using Oxygen).

The prefix '+' allows a further string to be appended to the path. '-' does ther reverse of this, and chops the end off the pathname.

When the includepath is "" or unspecified, then all include files will be sought relative to the current directory.

The same rules apply to Librarypath for specifiying the location of non-system dlls.