Here is a half-ready makefile.vc, which, at least, compiles for me but, I suppose, does not lead to anything.
This is to compile with MS-VC6 (why this compiler?-> the msvcrt.dll is preinstalled on all windows (in contrast to the successors))
I did not understand the underlaying STUBS-architecture of the files. I may do a further try to get a usable makefile.
Thank you,
Harald
MSVC6 Makefile skeleton
ftol2.c to link libxml2 statically
After reading the last post of the devel list, I understood, there is no internal stubs any more.
Thus the make file could be simplified to a single compile and link step.
The uploaded makefile:
- builds a dynamic build with succes. If loaded into TCL, the interpreter crashes.
- build a static build with link errors due to duplicate symbols in libxml2.
How to invoke the make file:
nmake -f makefile.vc TCLVERSION=85 TCLDIR="C:\Program Files\tcl8.5" INSTALLDIR=C:\test\tclxml32 LIBZDIR=C:\test\tclxml-libs\zlib-1.2.3-lib LIBICONVDIR=C:\test\tclxml-libs\iconv-1.9.2.win32 LIBXML2DIR=C:\test\tclxml-libs\libxml2-2.7.2.win32 LIBXSLTDIR=C:\test\tclxml-libs\libxslt-1.1.24.win32
add "OPTS=static" to try the static build.
I uploaded the libxml2 files as binary packages.
To get a real MS-VC6 build, those must also use this compiler (and not C++12 as the binaries).
The following warnings appear when making the dynamic link:
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_GetErrorObj" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_ResetError" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_GetDocFromObj" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_CreateObjFromDoc" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_SetErrorNodeFunc" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_DocKeep" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_NewDocObj" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_GetTclDocFromObj" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_DestroyDocument" imported
LINK : warning LNK4049: locally defined symbol "_TclXML_libxml2_GetTclDocFromNode" imported
Thank you,
Harald