I would lo call call_c_code cpp/exe from TCL.I have tried the following code:
#!/usr/bin/tclshset scripts_path call_c_code.exeexec gcc -c $scripts_path >@stdout 2>@stderr
But I have the following error:
% source "tcl_to_call_C.tcl"gcc.exe: warning: call_c_code.exe: linker input file unused because linking not done
The call_c_code.exe is a basic HelloWorld:
#include <stdio.h>int main() { printf("Hello World!"); return 0;}
Is that the right way to call the ".exe" from TCL?