It assumes that on Linux, you need #include <tcl/tcl.h> instead of #include <tcl.h>, which isn't true on my OpenSUSE system at least. It also assumes the librarys to link against are -ltcl -ltk instead of (Again, on my computer; it varies depending on distribution and tcl/tk version) -ltcl8.6 -ltclstub8.6 -ltk8.6 -ltkstub8.6.
Normally you'd use pkg-config or the installation-specific tclConfig.sh and tkConfig.sh shell scripts to get compiler/linker path flags and libraries, but I don't know if your build system supports that since the current ones are hard-coded in the source file.
It assumes that on Linux, you need
#include <tcl/tcl.h>
instead of#include <tcl.h>
, which isn't true on my OpenSUSE system at least. It also assumes the librarys to link against are-ltcl -ltk
instead of (Again, on my computer; it varies depending on distribution and tcl/tk version)-ltcl8.6 -ltclstub8.6 -ltk8.6 -ltkstub8.6
.Normally you'd use
pkg-config
or the installation-specifictclConfig.sh
andtkConfig.sh
shell scripts to get compiler/linker path flags and libraries, but I don't know if your build system supports that since the current ones are hard-coded in the source file.