Persistent environment variables (in DLM example) [message #85470] |
Mon, 12 August 2013 04:41  |
Ralf Gu
Messages: 1 Registered: August 2013
|
Junior Member |
|
|
Hello everybody,
I'm pretty new in cross platform developing using IDL and I have a problem which literally freaks my out, because it seems to be very very basic. Let me explain:
I want to run the DLM- testmodule which is provided as an example by Exelis and found under "...\Exelis\IDL82\external\dlm\build_testmodule.pro". When I call it from IDL, I always encounter an error which says that the command 'cl' is unknown. So I open the windows prompt (cmd.exe) and I set visual studio's environment variables navigating to "...\Microsoft Visual Studio 10.0\VC\bin\" and executing 'vcvars32.bat'. When I now run cl, the command is known and everything is fine. However, when I try to run the aforementioned pro-File again using IDL, the same error message appears again. This means that the environment variables are not set persistently at all! But why not and how to solve this problem? Does anybody got a clue how to approach this? I'd be very thankful for any hint.
Best regards
ralf
|
|
|
Re: Persistent environment variables (in DLM example) [message #85471 is a reply to message #85470] |
Mon, 12 August 2013 05:24  |
Lajos Foldy
Messages: 176 Registered: December 2011
|
Senior Member |
|
|
On Monday, August 12, 2013 1:41:02 PM UTC+2, Ralf Gu wrote:
> I want to run the DLM- testmodule which is provided as an example by Exelis and found under "...\Exelis\IDL82\external\dlm\build_testmodule.pro". When I call it from IDL, I always encounter an error which says that the command 'cl' is unknown. So I open the windows prompt (cmd.exe) and I set visual studio's environment variables navigating to "...\Microsoft Visual Studio 10.0\VC\bin\" and executing 'vcvars32.bat'. When I now run cl, the command is known and everything is fine. However, when I try to run the aforementioned pro-File again using IDL, the same error message appears again. This means that the environment variables are not set persistently at all! But why not and how to solve this problem? Does anybody got a clue how to approach this? I'd be very thankful for any hint.
-control panel
-- system and security
--- system
---- advanced system settings
----- environment variables
regards,
Lajos
|
|
|