I’m trying to compile an example programme using tk. I have nearly all of the libraries sorted, but I think I’m missing one.
Command:
gcc ./tk.c -I/usr/include/tcl8.5/ -ltk8.5 -ltcl8.5 -lm -lpthread -lfontconfig -lX11 -lXft -lXss
Output:
/tmp/cc78MM6w.o: In function `Tk_AppInit':
tk.c:(.text+0xf5): undefined reference to `ClockCmd'
tk.c:(.text+0x120): undefined reference to `ClockObjDestroy'
tk.c:(.text+0x130): undefined reference to `ClockObjCmd'
There’s nothing on Google — anyone recognise ClockCmd? Thanks.
Something wrong with the example code I think; none of the other examples had a problem.