- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello everybody,
I have a very simple question:
How can I get and set system environment-variables by a fortran
program?
E.g. I want to see if %LIB% and %PATH% are set correctly.
I am using the Intel Fortran compiler.
Best regards,
Michael
I have a very simple question:
How can I get and set system environment-variables by a fortran
program?
E.g. I want to see if %LIB% and %PATH% are set correctly.
I am using the Intel Fortran compiler.
Best regards,
Michael
コピーされたリンク
3 返答(返信)
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello
See SETNVQQ and GETENVQQ functions but they can only affect the environment variables of the current process.
Refer to the IVF help for more information.
Windows API functions SetEnvironmentVariable and GetEnvironmentVariable are an alternative.
I think that compiler/linker variables are set only for the related process and are not visible for an external process.
See SETNVQQ and GETENVQQ functions but they can only affect the environment variables of the current process.
Refer to the IVF help for more information.
Windows API functions SetEnvironmentVariable and GetEnvironmentVariable are an alternative.
I think that compiler/linker variables are set only for the related process and are not visible for an external process.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Fortran 2003 defines GET_ENVIRONMENT_VARIABLE, which current Intel Fortran supports, but there is not yet a standard intrinsic to set an environment variable.
LIB is only appropriate for linking, as noted.
LIB is only appropriate for linking, as noted.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Quoting - Steve Lionel (Intel)
Fortran 2003 defines GET_ENVIRONMENT_VARIABLE, which current Intel Fortran supports, but there is not yet a standard intrinsic to set an environment variable.
LIB is only appropriate for linking, as noted.
LIB is only appropriate for linking, as noted.
Thanks for your help.
GETENVQQ helped me.
Nice forum.
Best regards,
Michael
