[ndnSIM] compiling error

Xiaoke Jiang shock.jiang at gmail.com
Mon Jun 24 19:51:23 PDT 2013


Hi Alex,
    I am using gcc 4.2.1; MacPorts 2.1.2; boost 1.53.0.
    
    It's quite confusing...


thanks

My Regards,
Xiaoke (Shock) Jiang (蒋小可)

Ph.D. Candidate,
Department of Computer Science and Technology,
Tsinghua University, Beijing, P.R.China. 100084




On Monday, June 24, 2013 at 1:08 PM, Alex Afanasyev wrote:

> Hi Xiaoke,
>  
> No, I haven't seen this error, though I'm using OSX to compile NS-3 all the time.  Are you using clang or gcc compiler?
>  
> I checked ipv4-header.h:88 file and the line corresponds to definition of CS5 identifier.  It is possible (but not sure why) that something is defining CS5 as something else, which confuses the compilation.
>  
> --
> Alex
>  
> On Jun 23, 2013, at 1:46 AM, Xiaoke Jiang <shock.jiang at gmail.com (mailto:shock.jiang at gmail.com)> wrote:
> > Hi Alex,  
> > Today I reconfigure my local code on my mac os, then compiling gives me an error. Do you meet this before?  
> >  
> > [ 987/2043] cxx: src/internet/model/ipv4-raw-socket-factory-impl.cc (http://ipv4-raw-socket-factory-impl.cc) -> build/src/internet/model/ipv4-raw-socket-factory-impl.cc.1.o
> > In file included from ./ns3/ipv4-routing-protocol.h:25,
> >                  from ./ns3/ipv4-list-routing.h:23,
> >                  from ./ns3/ipv4-routing-helper.h:26,
> >                  from ./ns3/ipv4-nix-vector-helper.h:25,
> >                  from ./ns3/nix-vector-routing-module.h:10,
> >                  from src/nix-vector-routing/bindings/ns3module.h:63,
> >                  from src/nix-vector-routing/bindings/ns3module.cc:1 (http://ns3module.cc:1):
> > ./ns3/ipv4-header.h:88: error: expected identifier before numeric constant
> > ./ns3/ipv4-header.h:88: error: expected `}' before numeric constant
> > ./ns3/ipv4-header.h:88: error: expected unqualified-id before numeric constant
> > ./ns3/ipv4-header.h:99: error: variable or field ‘SetDscp’ declared void
> >  
> >  
> >  
> > thanks
> >  
> > My Regards,
> > Xiaoke (Shock) Jiang (蒋小可)
> >  
> > Ph.D. Candidate,
> > Department of Computer Science and Technology,
> > Tsinghua University, Beijing, P.R.China. 100084
> >  
> >  
> >  
> >  
>  
>  
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130625/f19526fe/attachment.html>


More information about the ndnSIM mailing list