LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-23-2012, 10:50 AM   #1
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 05-04-2012, 06:23 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
The commands should be :

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

.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when running make for ns2.30 in Ubuntu 9.10 Labuschagne Linux - Software 32 03-08-2014 02:07 PM
make file error ns2 raji27 Linux - Wireless Networking 6 02-24-2013 10:51 AM
make error in ns2.29 when adding new protocol assassin91 Linux - Newbie 25 04-24-2012 12:17 AM
Leach installation on ns2.35-- error after "make" command supu Linux - Newbie 2 03-27-2012 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration