When setting up the paths in the uV4 target setting dialog I need to find out how to set relative paths from the location of the project file. I refer to the path setups for locations of OBJ and LIST files and the output file from the link process.
Michael Karas
Michael; If I understand your question, you can set the file folders for output and listing from the Target->Configurations dialog. At the top tabs, select 'Output' and then click the the 'Select Folder for Objects Button' and enter a path or create a folder to hold your object files.
For the listing files you do the same thing but select the 'Listings' tab and click the 'Select Folder for Listing' button. Bradford
I know how to set the paths from the configuration tabs and buttons like you describe. But I want to understand if and how one can specify paths for these that are relative paths to the location where the project file is located. I would like to have target OBJ and LIST folders that are within the same folder structure as the project, the sources, the includes etc. Relative paths are essential for this because when one spawns a new copy of the project folders for a new version or for a new derivative project one wants the corresponding .\list and .\obj folders to move with the cloned project instead of pointing back at the corresponding folders on the original project tree.
The best way is the double dot notation {..\} wich ponts to the previous directory(folder). If you know the depth of the project from the root (eg C:\ or D:\ or F:\ ...) then you can point to the desired subfolder using this ..\ notation
C:\Dev\project1\v1.0a\src\
eg: ..\..\..\..\ points to root of whatever drive leter you use ( \ also ) and combining with the $ keys you can build sophisticated file paths for your projects.
also the codes for relative paths are expresed here: http://www.keil.com/support/man/docs/uv4/uv4_ut_keysequence.htm http://www.keil.com/support/man/docs/uv4/uv4_cm_set.htm