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

[ns] RE: problem encounted while building ns2 for windows 98



Hello everybody,

I have downloaded tcl8.0.4, tk8.0.4, otcl-1.0a5, tclcl-1.0b9, and ns-2.1b6
and unzip them into a directory c:\netsim.

No problem faced while compiling for tcl, tk and otcl using VC++ 5 on
windows98.

I am trying to build ns-2 on windows98 using VC++ ver 5, but has not been
able to successful compile NS ver 2 itself. Even though I have successfully
compile TCL, TK, OTCL & TCLCL in orders.

I have download even download these snapshots:

otcl-src-snapshot.tar.gz
tclcl-src-snapshot.tar.gz
ns-src-snapshot.tar.gz

and recompile OTCL and TCLCL.
However, when compiling NS2,I cannot get through this step:

cl -c -Ox -c -W3 -DCRTAPI1=cdecl -DCRTAPI2=cdecl -nologo -D_x86=1 -DW
INVER=0X0400 -dwin32 -D -WIN32 -D_MT -D_DLL -MD -OZ -zM1000 -DNo_TK -IC:\net
sim\tk80~1.4\win -IC:\netsim\tk80~1.4\generic -IC:\netsim\tcl80~1.4\win  -IC
:\netsim\tcl80~1.4\generic -IC:\netsim\octcl-1.0a5 -IC:\netsim\tclcl -IC:\ne
tsim\tcl80~1.4\xlib -I. -IC:\progra~1\devstudio\vc\include -Fofiffusion.o -T
p diffusion/diffusion.cc

diffusion.cc

c:\PROGRA~1\DEVSTUDIO\VC\INCLUDE\MATH.H (523): ERROR C2894 : TEMPLATE CANNOT
BE DECLARED TO HAVE 'C' LINKAGE

DIFFUSION/DIFFUSION.CC(134):WARNING C4355 : 'This': used in base member
initializer list
DIFFUSION/DIFFUSION.CC(135):WARNING C4355 : 'This': used in base member
initializer list
DIFFUSION/DIFFUSION.CC(407 ):ERROR C2572 : 'MACsend': " redefinition of
default parameter: parameter 2


Would you please help me out on this?

Thanks & Best Regards,



William