LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2008, 09:10 AM   #1
rania kamal
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Rep: Reputation: 0
Unhappy compilation problem


hi all,
i install ns2.33 on my ubuntu and i have to do some changes in ns2.33 (replace some .cc & .h files and and delete packet.o file) to be able to simulate GPSR protocol, so i must compile ns2.33 to reflect my changes but appear to me problems:-

rania@rania-desktop:~/ns-allinone-2.33/ns-2.33$ make
make: CXX@: Command not found
make: *** [common/packet.o] Error 127
rania@rania-desktop:~/ns-allinone-2.33/ns-2.33$


i have already install in usr/bin g++,g++-4.1,gcc,gcc-4.1
i install also build essential
i posts this problem to many groups but i haven't get the answer, hope u can help me,if u need any informations plz inform me, thanks
 
Old 09-28-2008, 06:40 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Put ./ before make:
Code:
rania@rania-desktop:~/ns-allinone-2.33/ns-2.33$ ./make
 
Old 09-28-2008, 06:46 PM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
does the thing actually have a makefile in that directory?
 
Old 09-28-2008, 07:18 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Quote:
Originally Posted by jay73 View Post
does the thing actually have a makefile in that directory?
Mmm, why didn't I think of that?
There should be a README and INSTALL files, too.
Might have to ./configure.
 
Old 10-08-2008, 02:06 PM   #5
rania kamal
LQ Newbie
 
Registered: Sep 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by brianL View Post
Mmm, why didn't I think of that?
There should be a README and INSTALL files, too.
Might have to ./configure.
i run configure then make and the got the same thing. but when i run ./configure instead of ./configure i got alot of error, the following is the part of code

No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
.
checking whether we are cross compiling... no
.
checking that g++ can handle -O2... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tcl/lib/ns-autoconf.tcl
config.status: creating indep-utils/webtrace-conv/ucb/Makefile
config.status: creating indep-utils/webtrace-conv/dec/Makefile
config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
config.status: creating indep-utils/webtrace-conv/epa/Makefile
config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged

and when i type make

common/packet.cc:44: error: conflicting declaration 'char** p_info::name_'
common/packet.h:277: error: 'p_info::name_' has a previous declaration as 'char* p_info::name_ [59]'
common/packet.cc:44: error: declaration of 'char* p_info::name_ [59]' outside of class is not definition
common/packet.cc:45: error: 'unsigned int p_info::nPkt_' is not a static member of 'class p_info'
common/packet.cc:46: error: expected constructor, destructor, or type conversion before '*' token
common/packet.cc:48: error: no 'int p_info::addPacket(char*)' member function declared in class 'p_info'
common/packet.cc: In member function 'int p_info::addPacket(char*)':
common/packet.cc:50: error: 'nPkt_' was not declared in this scope
common/packet.cc:51: error: 'initName' was not declared in this scope
common/packet.cc:53: error: 'nPkt_' was not declared in this scope
common/packet.cc:55: error: 'initName' was not declared in this scope
make: *** [common/packet.o] Error 1
 
  


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
compilation problem shariefbe Linux - Software 6 08-18-2008 10:12 AM
compilation problem girish_hilage AIX 3 05-31-2006 09:01 AM
C++ Compilation problem with G++ nelnel Programming 6 07-06-2005 10:58 PM
c compilation problem edreddy Programming 5 06-02-2004 01:37 PM
Compilation problem... need help Korshun Programming 2 05-07-2002 01:33 PM


All times are GMT -5. The time now is 03:03 AM.

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