Tcl interpreter undefined reference error while compiling with gcc
问题 I am new to Tcl scripting and would like to use C to embed Tcl codes. This is the code that I have copied from a website to test the Tcl-C working. test.c #include <stdio.h> #include <tcl.h> void main () { Tcl_Interp *myinterp; char *action = "set a [expr 5 * 8]; puts $a"; int status; printf ("Your Program will run ... \n"); myinterp = Tcl_CreateInterp(); status = Tcl_Eval(myinterp,action); printf ("Your Program has completed\n"); getch(); } I am using MinGW to compile this file. I have