Software Archive
Read-only legacy content
Avisos
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discusiones

enviroment variable in include statement

Intel_C_Intel
Empleados
590 Vistas
How can i use a environment variable to hold the include
statement flexible.
0 kudos
2 Respuestas
Steven_L_Intel1
Empleados
590 Vistas
Sorry, you can't. But you can specify include paths under Project..Settings..Fortran..Preprocessor or /include on the command line.

Steve
stevenstarkey
Principiante
590 Vistas
We use relative paths and environment variables in the "Fortran -> Preprocesser -> INCLUDE and USE Paths:"

Mine is:

"..Includes;$(WCERT)SourceIncludes"

On my machine WCERT = "m:" and is where our latest released build source resides. ( is the current product I am working on. )
All of our source is in folders under "x:source".
So all includes are in "x:sourceincludes".
(x: is wherever the user has put his copy of the latest build; the folder layout is the same for release and testing of a )
This allows programmers to put their testing on different drives and allows for the programmer to only have copies of whatever they have changed.
It also allows the programmer to take a copy of the entire under test and move it to another machine and start right up and go after defining WCERT.
We also use WCERT to point to where the libraries are.
( "Properties" of an added library, "Persist as:" name would be something like "$(wcert)LibDebugGEN_UTIL.lib". )
Responder