News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Using environment variables in 'Build target files'

Started by rodrigo.canellas, September 24, 2007, 08:50:55 PM

Previous topic - Next topic

rodrigo.canellas

Hi,

I would like that every file in 'Build target files' list would be in the form "$(DVP_SRC)\path\subpath\filename.cpp", instead of "..\..\..\path\subpath\filename.cpp".

Is there a way of doing it, other than editing the '.cbp' project file?


Thanks!

rodrigo.canellas

Actually, it is necessary more than just to be listed this way.

When compiling, the compiler complained that a 'c:\pathA\pathB\$(DVP_SRC)\path\subpath\filename.cpp' could not be found.

So, the path informed to the compiler is the full path, and not the relative.

Thanks again!

thomas

Regarding your first post, I don't think this is possible without editing the project file by hand, and even then it might not work (this depends on the time variables are expanded, I don't remember when they are).

Regarding your second post, it would be interesting to see the full commandline and compiler output for that file (make sure logging is set to "full commandline" in compiler options (rightmost tab), and post the result here).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."