- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using XE Composer 2013 with Visual Studio 2012.
To add additional include path with a simple statement, I want to define an environmental variable.
I searched google in regard with this, but all things are about C++, and seems to be different from a Fortran Project.
Where are the environmetal variables for VS defined?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sergey, that's not what's being asked.
The answer is that it is identical to that for a C++ project, under Debugging > Environment. Click the arrow to the right of the field and select Edit. Put your variables in, one per line, in the form name=value. Unlike in some other properties, you can't just put in a comma or semicolon-delimited list. The settings are stored in the .vfproj.user file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Still not what is being asked for, though it is useful to understand that option page in general. The page Sergey points to is for defining how the compiler and build tools get invoked - where VS looks for the compiler and what the default library and include directories are. It is not where you define user-specified environment variables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I must apologize - it seems I was the one who misunderstood the question.
Yes, the method for setting default directory paths is now different in Fortran than C++ - it used to be the same but C++ changed in VS2010 to use separate property pages. To be honest, I find the new C++ method to be confusing and complex, but...
Sergey has the right approach to add default include paths for all projects. Yes, you can also use your own environment variables but they need to be defined in the context of where VS is run.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page