[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem installing tclcl on windows 98



Hi,

My email is [email protected] 

I have downloaded tclcl,otcl,nam, ns and tcl for windows. I installed 
them all into c:\ns directory. I have Visual C++ version 6. I run the 
VCVARS32.bat file to set relevant system parameters. I then move to 
the c:\ns\tclcl directory and I issue the command

nmake /f makefile.vc

and I get the following error message (at end of message). 

The start of my makefile.vc in the (c:\ns\tclcl\) directory reads as 
follows:

# The following will be redefined under Windows (see WIN32 lable
# below)
CC	= @CC@
CPP	= @CXX@
LINK	= $(CPP)
MKDEP	= ./conf/mkdep
TCLSH	= @V_TCLSH@
TCL2C	= ./tcl2c++
AR	= ar rc $(BLANK)

RANLIB	= @V_RANLIB@
INSTALL	= @INSTALL@
LN	= ln
TEST	= test
RM	= rm -f
PERL	= perl


CCOPT	= @V_CCOPT@
STATIC	= @V_STATIC@
LDFLAGS	= $(STATIC)
LDOUT	= -o $(BLANK)

DEFINE	= -DNO_TK @V_DEFINE@ @V_DEFINES@

INCLUDES = \
 -I. @V_INCLUDES@

LIB	= \
 @V_LIBS@

CFLAGS	= $(CCOPT) $(DEFINE)

# Explicitly define compilation rules since SunOS 4's make doesn't
# like gcc. Also, gcc does not remove the .o before forking 'as',
# which can be a problem if you don't own the file but can write to
# the directory.
.SUFFIXES: .cc	# $(.SUFFIXES)

.cc.o:
 @rm -f $@
 $(CPP) -c $(CFLAGS) $(INCLUDES) -o $@ $*.cc

.c.o:
 @rm -f $@
 $(CC) -c $(CFLAGS) $(DEFINE) $(INCLUDES) -o $@ $*.c


GEN_DIR	= gen/
LIB_TCLCL = @V_ALL@
LIBRARY_TK = @V_LIBRARY_TK@
LIBRARY_TCL = @V_LIBRARY_TCL@


TCL_80_LIBRARY_FILES = \
 $(LIBRARY_TCL)/init.tcl \
 $(LIBRARY_TCL)/history.tcl \
 $(LIBRARY_TCL)/word.tcl \
 $(LIBRARY_TCL)/http2.0/http.tcl

TCL_76_LIBRARY_FILES = \
 $(LIBRARY_TCL)/init.tcl

TCL_LIBRARY_FILES = \
 @V_TCL_LIBRARY_FILES@

#TKDOSNAMES = \
#	$(LIBRARY_TK)/optionMenu.tcl \
#	$(LIBRARY_TK)/scrollbar.tcl
TKDOSNAMES = @V_TKDOSNAMES@

OBJ_COMPAT_C = 

# WIN32: uncomment the following line to be use with vc++ nmake  I
# took away '!' from before include
include <conf/makefile.win>

TK_LIBRARY_FILES = \
  $(TCL_LIBRARY_FILES) \

__________________________________ etc.....



The start of my makefile.win file in c:\ns\tclcl\conf reads as
follows:






MSVCDIR	= c:\progra~1\micros~2\vc98
TOOLS32	= $(MSVCDIR)
PATH	=
$(MSVCDIR);$(PATH);c:\progra~1\micros~2\vc98;c:\progra~1\micros~2\vc98
\bin INCLUDE	= $(MSVCDIR)\include

# comment this out to build with debug options
NODEBUG=1
TARGETOS = BOTH

# uncomment this out to build static version
#STATIC_LIB=1

!include <$(INCLUDE)/win32.mak>

cc32	= cl
rc32	= rc
link32	= link

LOCAL_LIB = \usr\local\lib
LOCAL_SRC = ..\

#TK_VER  = 42
#TCL_VER = 76
# uncomment this to use tcl/tk 8
USE_TCL_80 = 1

!if "$(USE_TCL_80)" == "1"
TK_VER = 80
TCL_VER = 80 
!endif

TK_DIR	= c:\ns\tk
TCL_DIR	= c:\ns\tcl

________________________  .....etc .....

The error message is as follows:
.....
........ 

cl -c -Ox -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1
 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32  -D_WIN32 -D_MT -D_DLL -MD
 -Ox -Zm1000 -DNO_TK -Ic:\progra~1\micros~2\vc98\include
 -I..\tk8.0\win -I..\tk8.0\generic -I..\tcl8.0\win -I..\tcl8.0\generic
  -Ic:\ns\otcl -Ic:\ns\tclcl  -I..\tk8.0\xlib  -I./jpeg -I./p64 -I.
 -FoTcl.o -Tp Tcl.cc
Tcl.cc
c:\ns\otcl\otcl.h(28) : error C2061: syntax error : identifier
'Tcl_Interp' c:\ns\otcl\otcl.h(31) : error C2061: syntax error :
identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(34) : error C2061: syntax
error : identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(37) : error C2061:
syntax error : identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(40) : error
C2061: syntax error : identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(43) :
error C2061: syntax error : identifier 'Tcl_Interp'
c:\ns\otcl\otcl.h(46) : error C2065: 'Tcl_Interp' : undeclared
identifier c:\ns\otcl\otcl.h(46) : error C2065: 'in' : undeclared
identifier c:\ns\otcl\otcl.h(46) : error C2226: syntax error :
unexpected type 'OTclObject' c:\ns\otcl\otcl.h(49) : error C2226:
syntax error : unexpected type 'OTclClass' c:\ns\otcl\otcl.h(52) :
error C2061: syntax error : identifier 'Tcl_CmdProc'
c:\ns\otcl\otcl.h(56) : error C2061: syntax error : identifier
'Tcl_CmdProc' c:\ns\otcl\otcl.h(66) : error C2061: syntax error :
identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(70) : error C2061: syntax
error : identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(74) : error C2061:
syntax error : identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(78) : error
C2061: syntax error : identifier 'Tcl_Interp' c:\ns\otcl\otcl.h(82) :
error C2061: syntax error : identifier 'Tcl_Interp'
c:\ns\otcl\otcl.h(86) : error C2061: syntax error : identifier
'ClientData' c:\ns\otcl\otcl.h(90) : error C2061: syntax error :
identifier 'ClientData' c:\ns\tclcl\tclcl-mappings.h(48) : error
C2061: syntax error : identifier 'ClientData'
        c:\ns\tclcl\tclcl-mappings.h(60) : see reference to class
        template instantiation 'TclObjectHelper<T>' being compiled
c:\ns\tclcl\tclcl.h(59) : error C2061: syntax error : identifier
'Tcl_Interp' c:\ns\tclcl\tclcl.h(62) : error C2143: syntax error :
missing ';' before '*' c:\ns\tclcl\tclcl.h(62) : error C2433:
'Tcl_Interp' : 'inline' not permitted on data declarations
c:\ns\tclcl\tclcl.h(62) : error C2501: 'Tcl_Interp' : missing
storage-class or type specifiers c:\ns\tclcl\tclcl.h(62) : error
C2501: 'interp' : missing storage-class or type specifiers
c:\ns\tclcl\tclcl.h(62) : warning C4183: 'interp': member function
definition looks like a ctor, but name does not match enclosing class
c:\ns\tclcl\tclcl.h(89) : error C2061: syntax error : identifier
'Tcl_CmdProc' c:\ns\tclcl\tclcl.h(94) : error C2061: syntax error :
identifier 'Tcl_CmdProc' c:\ns\tclcl\tclcl.h(150) : error C2143:
syntax error : missing ';' before '*' c:\ns\tclcl\tclcl.h(150) : error
C2501: 'Tcl_Interp' : missing storage-class or type specifiers
c:\ns\tclcl\tclcl.h(150) : error C2501: 'tcl_' : missing storage-class
or type specifiers c:\ns\tclcl\tclcl.h(155) : error C2146: syntax
error : missing ';' before identifier 'objs_' c:\ns\tclcl\tclcl.h(155)
: error C2501: 'Tcl_HashTable' : missing storage-class or type
specifiers c:\ns\tclcl\tclcl.h(155) : error C2501: 'objs_' : missing
storage-class or type specifiers c:\ns\tclcl\tclcl.h(195) : error
C2061: syntax error : identifier 'ClientData' c:\ns\tclcl\tclcl.h(247)
: error C2061: syntax error : identifier 'ClientData'
c:\ns\tclcl\tclcl.h(249) : error C2061: syntax error : identifier
'ClientData' c:\ns\tclcl\tclcl.h(251) : error C2061: syntax error :
identifier 'ClientData' c:\ns\tclcl\tclcl.h(253) : error C2061: syntax
error : identifier 'ClientData' c:\ns\tclcl\tclcl.h(255) : error
C2061: syntax error : identifier 'ClientData' c:\ns\tclcl\tclcl.h(264)
: error C2061: syntax error : identifier 'ClientData'
c:\ns\tclcl\tclcl.h(274) : error C2061: syntax error : identifier
'Tcl_Interp' c:\ns\tclcl\tclcl.h(274) : error C2556: 'int __thiscall
EmbeddedTcl::load(void)' : overloaded function differs only by return
type from 'void __thiscall EmbeddedTcl::load(void)'
        c:\ns\tclcl\tclcl.h(273) : see declaration of 'load'
c:\ns\tclcl\tclcl.h(274) : error C2371: 'load' : redefinition;
different basic types
        c:\ns\tclcl\tclcl.h(273) : see declaration of 'load'
c:\ns\tclcl\tclcl.h(291) : error C2061: syntax error : identifier
'ClientData' Tcl.cc(81) : error C2061: syntax error : identifier
'ClientData' Tcl.cc(100) : error C2061: syntax error : identifier
'ClientData' Tcl.cc(115) : error C2614: 'Tcl' : illegal member
initialization: 'tcl_' is not a base or member Tcl.cc(116) : error
C2065: 'Tcl_InitHashTable' : undeclared identifier Tcl.cc(116) : error
C2065: 'objs_' : undeclared identifier Tcl.cc(116) : error C2065:
'TCL_STRING_KEYS' : undeclared identifier Tcl.cc(122) : error C2065:
'Tcl_CreateInterp' : undeclared identifier Tcl.cc(127) : error C2065:
'tcl' : undeclared identifier Tcl.cc(127) : error C2059: syntax error
: 'const' Tcl.cc(128) : error C2143: syntax error : missing ';' before
'{' Tcl.cc(128) : error C2447: missing function header (old-style
formal list?) Tcl.cc(138) : error C2065: 'Tcl_HashEntry' : undeclared
identifier Tcl.cc(138) : error C2065: 'he' : undeclared identifier
Tcl.cc(138) : error C2065: 'Tcl_FindHashEntry' : undeclared identifier
Tcl.cc(138) : error C2106: '=' : left operand must be l-value
Tcl.cc(140) : error C2065: 'Tcl_GetHashValue' : undeclared identifier
Tcl.cc(147) : error C2065: 'Tcl_CreateHashEntry' : undeclared
identifier Tcl.cc(148) : error C2106: '=' : left operand must be
l-value Tcl.cc(149) : error C2065: 'Tcl_SetHashValue' : undeclared
identifier Tcl.cc(154) : error C2106: '=' : left operand must be
l-value Tcl.cc(158) : error C2065: 'Tcl_DeleteHashEntry' : undeclared
identifier Tcl.cc(180) : error C2065: 'Tcl_GlobalEval' : undeclared
identifier Tcl.cc(180) : error C2065: 'tcl_' : undeclared identifier
Tcl.cc(181) : error C2065: 'TCL_OK' : undeclared identifier
Tcl.cc(211) : error C2227: left of '->result' must point to
class/struct/union Tcl.cc(251) : error C2065: 'ClientData' :
undeclared identifier Tcl.cc(251) : error C2146: syntax error :
missing ')' before identifier 'clientData' Tcl.cc(251) : error C2350:
'TclObject::dispatch_static_proc' is not a static member Tcl.cc(253) :
error C2059: syntax error : ')' Tcl.cc(254) : error C2143: syntax
error : missing ';' before '{' Tcl.cc(254) : error C2447: missing
function header (old-style formal list?) Tcl.cc(317) : error C2065:
'TCL_ERROR' : undeclared identifier Tcl.cc(329) : error C2065:
'Tcl_Eval' : undeclared identifier Tcl.cc(386) : error C2660:
'OTclGetObject' : function does not take 2 parameters Tcl.cc(388) :
error C2660: 'OTclOInstVarOne' : function does not take 6 parameters
Tcl.cc(442) : error C2146: syntax error : missing ')' before
identifier 'clientData' Tcl.cc(442) : error C2350:
'TclClass::dispatch_cmd' is not a static member Tcl.cc(443) : error
C2059: syntax error : ')' Tcl.cc(444) : error C2143: syntax error :
missing ';' before '{' Tcl.cc(444) : error C2447: missing function
header (old-style formal list?) Tcl.cc(449) : error C2146: syntax
error : missing ')' before identifier 'clientData' Tcl.cc(449) : error
C2350: 'TclClass::create_shadow' is not a static member Tcl.cc(450) :
error C2059: syntax error : ')' Tcl.cc(451) : error C2143: syntax
error : missing ';' before '{' Tcl.cc(451) : error C2447: missing
function header (old-style formal list?) Tcl.cc(485) : error C2062:
type 'int' unexpected Tcl.cc(486) : error C2143: syntax error :
missing ';' before '{' Tcl.cc(486) : error C2447: missing function
header (old-style formal list?) Tcl.cc(533) : error C2059: syntax
error : ',' Tcl.cc(535) : error C2143: syntax error : missing ';'
before '{' Tcl.cc(535) : error C2447: missing function header
(old-style formal list?) Tcl.cc(557) : error C2660: 'OTclGetClass' :
function does not take 2 parameters Tcl.cc(559) : error C2143: syntax
error : missing ')' before 'this' Tcl.cc(559) : error C2059: syntax
error : ')' Tcl.cc(561) : error C2143: syntax error : missing ')'
before 'this' Tcl.cc(561) : error C2059: syntax error : ')'
Tcl.cc(574) : error C2143: syntax error : missing ')' before 'this'
Tcl.cc(574) : fatal error C1003: error count exceeds 100; stopping
compilation