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

Re: [ns] Problems compiling ns-2 2000-12-07 snapshot on win2k



My original implementation used 

#include <pair.h>

instead of the 

#include <utility>

that's there now....
The problem seems to be needing a definition of the STL "pair" template,
which is in "pair.h", but gets included from the "utility"
include in the released version...try changing it to "pair" or "pair.h"
on MSVC and see if it fixes the prob (I don't have a windows box handy or
would try it myself..)

George


					
			-George F. Riley ([email protected])

On Thu, 7 Dec 2000, [iso-8859-1] Christian J�nsson wrote:

> It's time for that test compilation again...
> I'm on a Windows 2000/sp 1 box using MSVC 6.0/sp4 (I think).
> 
> I did a make -f Makefile.in PERL=perl makefile.vc to add the latest
> addings to ns-2 and got stuck at this:
> 
>         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:\usr\local\src\NetSim\tk8.3.2\win
> -Ic:\usr\local\src\NetSim\tk8.3.2\generic
> -Ic:\usr\local\src\NetSim\tcl8.3.2\win
> -Ic:\usr\local\src\NetSim\tcl8.3.2\generic
> -Ic:\usr\local\src\NetSim\otcl-snapshot-20001207
> -Ic:\usr\local\src\NetSim\tclcl-snapshot-20001207
> -Ic:\usr\local\src\NetSim\tk8.3.2\xlib  -I.
> -Ic:\progra~1\micros~3\VC98\include -Fonix/hdr_nv.o -Tp nix/hdr_nv.cc
> hdr_nv.cc
> .\nix/nixvec.h(34) : error C2143: syntax error : missing ';' before '<'
> .\nix/nixvec.h(34) : error C2143: syntax error : missing ';' before '<'
> .\nix/nixvec.h(35) : warning C4091: 'typedef ' : ignored on left of 'int'
> when no variable is declared
> .\nix/nixvec.h(35) : error C2143: syntax error : missing ';' before '<'
> .\nix/nixvec.h(35) : error C2143: syntax error : missing ';' before '<'
> .\nix/nixvec.h(44) : error C2061: syntax error : identifier 'NixPair_t'
> .\nix/nixvec.h(47) : error C2146: syntax error : missing ';' before
> identifier 'Get'
> .\nix/nixvec.h(47) : error C2501: 'NixpPair_t' : missing storage-class or
> type specifiers
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> 
> Any ideas?
> 
> /ChJ
> 
> 
> 
>