The following examples illustrate the use of SWIG with Tcl.
% swig -tcl interface.i
unix % swig -tcl interface.i unix % gcc -fpic -c interface_wrap.c -I/usr/local/include unix % gcc -shared interface_wrap.o $(OBJS) -o interface.so unix % tclsh8.3 % load ./interface.so % blah ...