Re: Compile TCL8.4.13 using VS2005?
- From: Paul Obermeier <obermeier@xxxxxxxxx>
- Date: Mon, 17 Jul 2006 23:13:53 +0200
xman_11214@xxxxxxxxx schrieb:
Dave,Lots of error messages skipped
Here is what I see from VS2005. I did use VS2003 & VC++6 before and
it compiled fine.
We just upgraded to use VS2005, then the compilation fails.
The following hacks allowed me to compile Tcl/Tk 8.4.12 with
Visual Studio 2005.
Note, that only the static version works, the dynamic version
brings up the following runtime error:
R6034 An application has made an attempt to load the C runtime
library incorrectly.
generic/tcl.h (line 387):
Add line for definition of _stati64:
#include <sys/stat.h>
generic/regerror.c (line 53):
Change:
regerror(errcode, preg, errbuf, errbuf_size)
int errcode; /* error code, or REG_ATOI or REG_ITOA */
CONST regex_t *preg; /* associated regex_t (unused at present) */
char *errbuf; /* result buffer (unless errbuf_size==0) */
size_t errbuf_size; /* available space in errbuf, can be 0 */
to:
regerror(int errcode, CONST regex_t *preg, char *errbuf, size_t errbuf_size)
(Don't ask why)
generic/tclExecute.c (line 398):
Remove line in definition of BuiltinFunc tclBuiltinFuncTable[] = {
{"floor", 1, {TCL_DOUBLE}, ExprUnaryFunc, (ClientData) floor},
(Don't ask why)
I've compiled with the following batch scripts:
tcl84.bat:
cd tcl8.4.12\win
set INSTALLDIR=C:\Programme\Tcl
nmake -f makefile.vc clean OPTS=static
nmake -nologo -f makefile.vc release OPTS=static
nmake -f makefile.vc install OPTS=static
cd ..\..
tk84.bat:
cd tk8.4.12\win
set INSTALLDIR=C:\Programme\Tcl
set TCLDIR=..\..\tcl8.4.12
nmake -f makefile.vc clean OPTS=static
nmake -nologo -f makefile.vc release OPTS=static
nmake -f makefile.vc install OPTS=static
cd ..\..
Greetings,
Paul
.
- References:
- Compile TCL8.4.13 using VS2005?
- From: xman_11214
- Re: Compile TCL8.4.13 using VS2005?
- From: David Gravereaux
- Re: Compile TCL8.4.13 using VS2005?
- From: xman_11214
- Compile TCL8.4.13 using VS2005?
- Prev by Date: Re: ANN: threads enabled Itcl
- Next by Date: about tkcon main behavior
- Previous by thread: Re: Compile TCL8.4.13 using VS2005?
- Next by thread: Reading and Writing Files at the C level
- Index(es):
Relevant Pages
|