I have a set of folders such as the following (the
topmost of these is a "first level" folder):
------------
| MBPgms |
------------
|
--------------------------
| |
------------- --------------
| Source | | Include |
------------- --------------
"Source" contains my .mb source programs. "Include"
contains some .def files that I will want to Include
in my source program compilation (such as "ListFns.def"
that I will reference below).
Within my source program "c:\MBPgms\Source\SampPgm.mb",
in order to Include "ListFns.def" I expect to be able
to use the following statement:
Include "..\Include\ListFns.def"
But the MapBasic compiler never finds ListFns.def, and
the compile finishes with error messages. I assume that
the folder containing the source program becomes the "base
folder" during the compile, so it seems to me that this
Include statement should work. (If the Include folder was
SUBORDINATE to the Source folder, the following DOES work:
Include "Include\ListFns.def"
which tells me that the compiler DOES consider the folder
of the source code to be the "base folder" during compile.)
Does MapBasic NOT honor "relative folder" specifications?
Thanks,
Phil Bolian