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
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, andmy replacement wants to try it.
Am 16.11.21 um 20:08 schrieb alan folsom:my replacement wants to try it.
Many years ago with TCL 8.5 I wrote a very simple extension on windows.
I could build it with this command line:In general, that should be it.
gcc -m32 -shared -o GetCRC.dll getcrc.c -DUSE_TCL_STUBS -IC:\tcl85\include -l tclstub85
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
Your line includes "-m32" which builds for 32 bit - is this intended? IfThanks, I missed that "-m32". Unfortunately, I'm still having errors. My build line looks like:
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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (3 / 13) |
Uptime: | 31:03:39 |
Calls: | 6,449 |
Calls today: | 1 |
Files: | 12,052 |
Messages: | 5,254,627 |