Ok I am using a complex although common in software development area directory structure:
main dir code images levels g*****a (cant give away all my secrets :-) ) data xml
The main has a #define path for images that are needed in the exe and a bind file for the ones that are loaded.
Also code uses a lot of ..\\..\\dir\\module for modules that are used by project but need to be maintained separate.. all works fine from sed but when I try to publish I get about 500 file not found errors...
BTW it is not that I don't know how to get around this issue but it is a bug with relative paths. I have already created a "pre-process" to copy all files to a build directory and remove all relative paths.
But this type of "fix" is just a kluge to get around a problem that should be fixed..
You define paths not with "#define path". That would just define a token named "path". You can define paths either under "Presets" in WED, or with a PATH statement in a .wdl project file - just look in the manual.
and PRAGMA_PATH only works for compilation, meaning code location, not for resource files, as it is a preprocessor command which you won't find after the compiler ran over it.
OK. so the PRAGMA_PATH that I a using only works for testing and not for publishing... This is kind of misleading as the manual states:
Looks for include and other files in the given path when they are not found in the current folder. This is similar to the PATH statement in a project file, with the exception that paths given by PRAGMA_PATH are also used for include files.
As you can see it states and "other files" but only works for compile not for publish....
That is the bug... maybe just better documentation needed....