LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error in configuring ns2.33 using make command (https://www.linuxquestions.org/questions/linux-software-2/error-in-configuring-ns2-33-using-make-command-941310/)

afsha2719 04-23-2012 09:50 AM

error in configuring ns2.33 using make command
 
in my project i am using ns2.33 on fedora 16 & i have to make some changes in makefile.in.To incorporate these changes i have to compile ns2 again so i make use of following commands
1) ./configure
2)make clean
3) make
and everytime i make use of make command i get following error


tools/ranvar.cc: In member function ‘virtual double GammaRandomVariable::value()’:
tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]
tools/ranvar.cc:219:70: error: for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]
make: *** [tools/ranvar.o] Error 1

knudfl 05-04-2012 05:23 AM

The commands should be :

0) export CC=gcc34 CXX=g++34
1) ./configure
2)make clean
3) make

.


All times are GMT -5. The time now is 08:31 PM.