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

ns 2.1b4 compilation fails on WindowsNT with VC++ 6.0



Hello,

As I've read the ns-users list for a while now, I've seen that some of
you have managed to compile ns on WindowsNT/98. I ran into problems
compiling ns 2.1b4 release on a WindowsNT machine with Microsoft Visual
C++ 6.0. I have already applied the patch from the ns-problems page to
the makefile.vc and to the filter files, but it doesn't solve my
problem.

When it tries to compile tcp-int.cc it breaks due to errors. It seams to
be a problem with the class Islist<IntTcpAgent> command in the file
chost.h. The errormessages are just at the bottom of this mail, after
the warnings about inheritance via dominance. Is this something anyone
of you ran into when compiling?

If you could give me some pointers on what you did to solve it I would
be most grateful!

Regards,

Magnus Ekstrand

<----------- Error message from VC++ 6.0 --------------->

	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\MI017E~1\VC98\include
-I..\tk8.0\win -I..\tk8.0\generic -I..\tcl8.0\win -I..\tcl8.0\generic
-I..\otcl-1.0a3 -I..\tclcl-1.0b7  -I..\tk8.0\xlib  -I./jpeg -I./p64 -I.
-Fotcp-int.o -Tp tcp-int.cc
tcp-int.cc
tcp-fs.h(61) : warning C4355: 'this' : used in base member initializer
list
tcp-fs.h(114) : warning C4250: 'RenoTcpFsAgent' : inherits
'RenoTcpAgent::recv' via dominance
        tcp.h(302) : see declaration of 'recv'
tcp-fs.h(114) : warning C4250: 'RenoTcpFsAgent' : inherits
'RenoTcpAgent::timeout' via dominance
        tcp.h(303) : see declaration of 'timeout'
tcp-fs.h(114) : warning C4250: 'RenoTcpFsAgent' : inherits
'RenoTcpAgent::window' via dominance
        tcp.h(301) : see declaration of 'window'
tcp-fs.h(114) : warning C4250: 'RenoTcpFsAgent' : inherits
'RenoTcpAgent::dupack_action' via dominance
        tcp.h(304) : see declaration of 'dupack_action'
tcp-fs.h(114) : warning C4250: 'RenoTcpFsAgent' : inherits
'TcpFsAgent::partialnewack_helper' via dominance
        tcp-fs.h(75) : see declaration of 'partialnewack_helper'
tcp-fs.h(134) : warning C4250: 'NewRenoTcpFsAgent' : inherits
'NewRenoTcpAgent::recv' via dominance
        tcp.h(314) : see declaration of 'recv'
tcp-fs.h(134) : warning C4250: 'NewRenoTcpFsAgent' : inherits
'RenoTcpAgent::timeout' via dominance
        tcp.h(303) : see declaration of 'timeout'
tcp-fs.h(134) : warning C4250: 'NewRenoTcpFsAgent' : inherits
'RenoTcpAgent::window' via dominance
        tcp.h(301) : see declaration of 'window'
tcp-fs.h(134) : warning C4250: 'NewRenoTcpFsAgent' : inherits
'NewRenoTcpAgent::dupack_action' via dominance
        tcp.h(316) : see declaration of 'dupack_action'
tcp-fs.h(152) : warning C4250: 'FackTcpFsAgent' : inherits
'FackTcpAgent::recv' via dominance
        tcp-fack.h(53) : see declaration of 'recv'
tcp-fs.h(152) : warning C4250: 'FackTcpFsAgent' : inherits
'FackTcpAgent::timeout' via dominance
        tcp-fack.h(54) : see declaration of 'timeout'
tcp-fs.h(152) : warning C4250: 'FackTcpFsAgent' : inherits
'FackTcpAgent::window' via dominance
        tcp-fack.h(56) : see declaration of 'window'
tcp-fs.h(152) : warning C4250: 'FackTcpFsAgent' : inherits
'FackTcpAgent::send_much' via dominance
        tcp-fack.h(60) : see declaration of 'send_much'
tcp-fs.h(152) : warning C4250: 'FackTcpFsAgent' : inherits
'TcpFsAgent::partialnewack_helper' via dominance
        tcp-fs.h(75) : see declaration of 'partialnewack_helper'
chost.h(97) : error C2079: 'conns_' uses undefined class 'Islist<class
IntTcpAgent>'
chost.h(110) : error C2079: 'seglist_' uses undefined class
'Islist<class Segment>'
tcp-int.cc(74) : error C2079: 'sessionList_' uses undefined class
'Islist<class TcpSessionAgent>'
tcp-int.cc(74) : error C2371: ' sessionList_ 7' : redefinition;
different basic types
        tcp-session.h(111) : see declaration of ' sessionList_ 7'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.