----- Original Message -----
Sent: Thursday, September 16, 1999 3:47
PM
Subject: Insufficient(?) MSVC++ 6.0 for
ns-2.1b6-19990916
There is a problem when compiling the 1999-09-16
snapshot with MSVC++ 6.0
concerning error C2664. Searching the MSDN, one finds a subject ``INFO: New
C++ Type Conversions May Generate C2446 or
C2664'' is formulated
claiming
that this might be a bug in the code. The other
alternative is that there is a bug
in MSVC++ 6.0.
Anyway, the compiler error messages are
these:
cl -c -Zi -Od -c -W3 -DCRTAPI1=_cdecl
-DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WIN32_IE=0x0300 -DWINVER=0x0400
-DWIN32 -D_WIN32 -D_MT -D_DLL -MD -Gm -Gi -YX -Zm1000 -DNO_TK
-I..\tk8.0.5\win -I..\tk8.0.5\generic -I..\tcl8.0.5\win
-I..\tcl8.0.5\generic -I..\otcl-1.0a4 -I..\tclcl-1.0b8-current
-I..\tk8.0.5\xlib -I. -Ic:\program\micros~1\vc98\include -Foclassifier.o
-Tp classifier.cc
classifier.cc
classifier.cc(146) : error C2664:
'classify' : cannot convert parameter 1 from 'const class Packet *' to 'class
Packet *'
Conversion loses
qualifiers
classifier.cc(160) : error C2664: 'classify' : cannot convert
parameter 1 from 'const class Packet *' to 'class Packet
*'
Conversion loses
qualifiers
cl -c -Zi -Od -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl
-nologo -D_X86_=1 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32 -D_WIN32
-D_MT -D_DLL -MD -Gm -Gi -YX -Zm1000 -DNO_TK -I..\tk8.0.5\win
-I..\tk8.0.5\generic -I..\tcl8.0.5\win -I..\tcl8.0.5\generic
-I..\otcl-1.0a4 -I..\tclcl-1.0b8-current -I..\tk8.0.5\xlib -I.
-Ic:\program\micros~1\vc98\include -Foclassifier-addr.o -Tp
classifier-addr.cc
classifier-addr.cc
classifier-addr.cc(113) : error
C2664: 'classify' : cannot convert parameter 1 from 'const class Packet *' to
'class Packet *'
Conversion
loses qualifiers
classifier-addr.cc(131) : error C2664: 'classify' : cannot
convert parameter 1 from 'const class Packet *' to 'class Packet
*'
Conversion loses
qualifiers
Cheers,
/ChJ
BTW, the compiler warnings I get are
attached.