Am 31.07.18 um 16:00 schrieb Luc Moulinier:
> I have to make some 32- and 64-bits compilations on Windows, so I installed MSYS2. I first compiled Tcl/Tk 8.6.7 without any problem.
>
> I now want to compile TEA extensions. I'm training using the >sampleextension<. However it doesn't work.
>
> 1) Using TclTk compiled with MSYS2 :
> ./configure --with-tcl=/c/TclTk8.6.7/lib
> make clean ; make
> gcc -shared -o sample05.dll sample.o tclsample.o "/c/TclTk8.6.7/lib/libtclstub86.a" -static-libgcc
>
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../..//../x86_64-w64-mingw32/bin/ld.exe: tclsample.o:tclsample.c:(.tex0xb15): undefined reference to `Tcl_InitStubs'
>
> Note that /c/TclTk8.6.7/lib/libtclstub86.a does exist.
Seems like a 32/64 bit mismatch to me. You can check it with the "file"
command, it should tell you on the .o and .a files, which platform they
were made for.
Christian