> Date: Mon, 19 Jun 2006 04:45:56 -0500
> From: "Htira Walid" <[EMAIL PROTECTED]>
> Subject: [ns] need for help
> Hi everybody,
>
> I have a problem in installing NS-allinone-2.29 with a linux Mandriva 64 bit 
> system. During installing part, I have the following error (it's a nam error) 
> :
>
> rm -f netmodel.o; g++ -o netmodel.o -c  -DTCL_TK  -DNDEBUG -DUSE_SHM 
> -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_11 -DHAVE_OTCL_H 
> -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_LIBZ1_1_4 
> -DHAVE_ZLIB_H  -I. -I/usr/local/ns-allinone-2.29/tclcl-1.17 
> -I/usr/local/ns-allinone-2.29/otcl-1.11 -I/usr/local/ns-allinone-2.29/include 
> -I/usr/local/ns-allinone-2.29/include -I/usr/include  netmodel.cc
> netmodel.cc: In member function 'int NetModel::addr2id(int) const':
> netmodel.cc:311: error: cast from 'void*' to 'int' loses precision
> netmodel.cc: In member function 'int NetModel::lookupObjname(const char*)':
> netmodel.cc:2764: error: cast from 'void*' to 'int' loses precision
> make: *** [netmodel.o] Erreur 1
>

64bit architecture uses int64 for address pointer. So I guess you need
to change "int" to "long long" when you see this problem.


-David

--
Xiaoliang (David) Wei      Graduate Student, [EMAIL PROTECTED]
http://davidwei.org
***********************************************

Reply via email to