[Ns-developers] TclDebug component in ns-allinone-2.32-rc2 ?
Pedro Vale Estrela
pedro.estrela at gmail.com
Thu Aug 30 05:02:04 PDT 2007
The problem is that --enable-debug sets "-Werror". In this case, any warning
drops the compilation.
Either remove the warning cause (as you did), or for testing manually remove
"-WError" from the makefile
> -----Original Message-----
> From: Ye YiBin [mailto:yeyibin at gmail.com]
> Sent: quarta-feira, 29 de Agosto de 2007 10:20
> To: Pedro Estrela
> Cc: ns-developers at isi.edu
> Subject: Re: [Ns-developers] TclDebug component in ns-allinone-2.32-rc2 ?
>
> I simply copied tcp.cc and tcp.h from ns-2.31/tcp/ to ns-2.32/tcp/, then
> make
> I got the following:
>
> mac/wireless-phy.cc:59:1: error: "MAX" redefined
> In file included from mac/wireless-phy.cc:55:
> /usr/include/sys/param.h:65:1: error: this is the location of the
> previous definition
> make: *** [mac/wireless-phy.o] Error 1
>
> Then I copy the definition of MAX from param.h to wireless-phy.cc:
> "#define MAX(a,b) (((a)>(b))?(a):(b))"
>
> Problems solved.
>
More information about the Ns-developers
mailing list