Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22014

Execute cpp/exe from TCL

$
0
0

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?


Viewing all articles
Browse latest Browse all 22014

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>