So if I have a directory structure like this:
Code: Select all
/folder/functions/lib1.pb
/folder/functions/lib2.pb
/folder/functions/lib3.pb
/folder/main.pb
What this means is that .pb files that use either IncludeFile or XIncludeFile are not portable unless no directory hierarchy is used in the project.Line 1: File not found (V:\folder\lib3.pb).
I would argue that this method of resolving include files is fundamentally flawed.
This is also unlike the behavior of the C 'quoted form' of the #INCLUDE directive:
MSDN wrote:[Quoted form] instructs the preprocessor to look for include files in the same directory of the file that contains the #include statement, and then in the directories of any files that include (#include) that file. The preprocessor then searches along the path specified by the /I compiler option, then along paths specified by the INCLUDE environment variable.