LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

why is getenv() and _putenv() available with real-time but not system()?

whenever I use system("any command i can think of like e.g. DIR"); in a real-time target i get:
Project link error
  Undefined symbol '_system' referenced in "SomeModuleBuiltAsARealTimeTarget.c".

Noting that system, getenv and _putenv are in the same library I tried just putting in a call to getenv and _putenv; for these I did NOT get a linking error.
Checking supported functions for real time applications show that getenv, _putenv AND system are in the list.
 
When trying to use LaunchExecutable I get the same problem.
 1 Project link error
  Undefined symbol '_LaunchExecutable@4' referenced in "SomeModuleBuiltAsARealTimeTarget.c".
 
So, what am I doing wrong here? Is the supported functions list wrong? Or am I just wanting the wrong thing here; which is being able to execute another program using system, since that is what the Lua library wants that I am trying to build.
 
0 Kudos
Message 1 of 1
(3,151 Views)