Am 16.11.21 um 20:08 schrieb alan folsom:
Many years ago with TCL 8.5 I wrote a very simple extension on windows.
I could build it with this command line:
gcc -m32 -shared -o GetCRC.dll getcrc.c -DUSE_TCL_STUBS -IC:\tcl85\include -l tclstub85
In general, that should be it.
but now trying to generate it again (using TCL 8.6 and the correct library designations) I get error messages that it can't find the stub pointers, or of if I try to build it without stubs it can't find the functions. I'm a month from retirement, and
my replacement wants to try it.
Your line includes "-m32" which builds for 32 bit - is this intended? If
so, did you make sure that indeed the libraries are 32bit libraries? I'm
asking because today it is very unlikely that you have a Tcl compiled in
32 bit.
The other thing, there is no linker path in your line. Where does it
pick up tclsub85? Maybe you should give it -LC:\.... before the
-ltclstub85 in order to be sure that t uses the right library.
Christian
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)