On 8/18/2016 4:44 AM,
pal...@yahoo.com wrote:
> My guess is that the MinGW-64 gcc tool chain does not understand the 64-bit .lib format produced by VC 6 (which is the compiler ActiveState uses). This used to be an issue at one time, I don't know if the incompatibility has been fixed in newer mingw distributions.
Using my ActiveState Tcl 8.6.4, I just did a link under Msys2 64-bit and
it worked fine (except for the wonky error message that can be ignored).
$ ls /c/Program\ Files/Tcl\ -\ 8.6.4/lib
ppm/
tclConfig-shared.sh
teapot/
tclConfig.sh
tk8.6/
tkstub86.lib
fsdialog/
tclIndex
tk86.lib
treectrl2.4/
imgtools0.1/
tcl8/
tkConfig-shared.sh
twapi4.1.2.7/
itcl4.0.3/
tcl8.6/
tclstub86.lib
tkConfig.sh
tcl86.lib
tdbc1.0.2/
tkdnd2.8/
$ gcc -v
Using built-in specs.
COLLECT_GCC=D:\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.1.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-6.1.0/configure --prefix=/mingw64
--with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32
--host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32
--with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include
--libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64
--with-tune=generic
--enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared
--enable-static --enable-libatomic --enable-threads=posix
--enable-graphite --enable-fully-dynamic-string
--enable-libstdcxx-time=yes --disable-libstdcxx-pch
--disable-libstdcxx-debug --disable-isl-version-check --enable-lto
--enable-libgomp --disable-multilib --enable-checking=release
--disable-rpath --disable-win32-registry --disable-nls --disable-werror
--disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64
--with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64
--with-pkgversion='Rev1, Built by MSYS2 project'
--with-bugurl=
https://sourceforge.net/projects/msys2 --with-gnu-as
--with-gnu-ld
Thread model: posix
gcc version 6.1.0 (Rev1, Built by MSYS2 project)
$ g++ -shared -o Mk4tcl.dll mk4tcl.o mk4too.o column.o custom.o
derived.o fileio.o field.o format.o handler.o persist.o remap.o std.o
store.o string.o table.o univ.o view.o viewx.o '-L/c/Program Files/Tcl -
8.6.4/lib' -ltclstub86 -static-libgcc -static-libstdc++ -Wl,-Bstatic
-Wl,--whole-archive -lpthread -Wl,--no-whole-archive -Wl,-Bdynamic
Warning: corrupt .drectve at end of def file
The goofy warning is (from my memory) an artifact of some pragma thing
for windows that tells the linker hints or instructions about libraries
-- gcc does not understand them.
--
computerjock AT mail DOT com