473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

make: *** No rule to make target `CORMAN/mobileEXOR.o', needed by `ns'. Stop.

hello all
im tring to integrate my protocol with ns2.34, im getting error like this

make: *** No rule to make target `CORMAN/mobileEXOR.o', needed by `ns'. Stop.


pls help me to fix it
Feb 27 '14 #1
6 1807
weaknessforcats
9,208 Expert Mod 8TB
There is no command in your makefile to compile the outfile mobileEXOR.o.

Something like:
Expand|Select|Wrap|Line Numbers
  1. mobileEXOR.o: mobileEXOR.cpp
  2.     g++ -c mobileEXOR.cpp
  3.  
maybe. It depends on how you compile mobileEXOR. Whether there is one source file or many. A make tutorial might help.
Feb 27 '14 #2
hi......
after compiling the 'makefile' im getting this error.....pls help me to fix it
ter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o mobileExOR/mobileExOR.o mobileExOR/mobileExOR.cc
In file included from ./mobile/propagation.h:49:0,
from ./mac/wireless-phyExt.h:62,
from ./mac/mac-802_11Ext.h:64,
from ./mobileExOR/mobileExOR.h:8,
from mobileExOR/mobileExOR.cc:1:
./mac/wireless-phy.h:131:37: error: expected identifier before 'r'
./mac/wireless-phy.h:131:37: error: expected ‘}’ before 'r'
./mac/wireless-phy.h:131:37: error: expected unqualified-id before 'r'
./mac/wireless-phy.h: In member function ‘bool& WirelessPhy::Is_node_on()’:
./mac/wireless-phy.h:98:37: error: ‘node_on_’ was not declared in this scope
./mac/wireless-phy.h: In member function ‘bool WirelessPhy::Is_sleeping()’:
./mac/wireless-phy.h:99:34: error: ‘status_’ was not declared in this scope
./mac/wireless-phy.h: At global scope:
./mac/wireless-phy.h:133:14: error: no matching function for call to ‘Sleep_Timer::Sleep_Timer()’
./mac/wireless-phy.h:133:14: note: candidates are:
./mac/wireless-phy.h:59:2: note: Sleep_Timer::Sleep_Timer(WirelessPhy*)
./mac/wireless-phy.h:59:2: note: candidate expects 1 argument, 0 provided
./mac/wireless-phy.h:57:7: note: Sleep_Timer::Sleep_Timer(const Sleep_Timer&)
./mac/wireless-phy.h:57:7: note: candidate expects 1 argument, 0 provided
./mac/wireless-phy.h:136:1: error: expected unqualified-id before ‘private’
./mac/wireless-phy.h: In function ‘EnergyModel* em()’:
./mac/wireless-phy.h:144:34: error: ‘node’ was not declared in this scope
./mac/wireless-phy.h: At global scope:
./mac/wireless-phy.h:146:2: error: ‘friend’ used outside of class
./mac/wireless-phy.h:148:1: error: expected declaration before ‘}’ token
./mac/wireless-phy.h: In function ‘EnergyModel* em()’:
./mac/wireless-phy.h:144:53: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [mobileExOR/mobileExOR.o] Error 1
Mar 1 '14 #3
weaknessforcats
9,208 Expert Mod 8TB
The compiler knew it was in trouble here:

Expand|Select|Wrap|Line Numbers
  1. ./mac/wireless-phy.h:131:37: error: expected identifier before 'r'
What's going on in wireless-phy.h at line 131 column 37?

You have to fix this first error because it can be causing other follow-on errors.

When you fix it, if there are other errors, then only fix the first one and then retry your build.
Mar 1 '14 #4
thank u weaknessforeats

but at the line 131 coloum 37 there is no such variable r
Mar 4 '14 #5
weaknessforcats
9,208 Expert Mod 8TB
The compiler knew it was in trouble at line 131 col 37. The actual error may be there or some place earlier in the code. Start going backwards from line 131.

One way to get at this is to start eliminating code until the program compiles and then start adding it back until you get the error. You haven't posted any of the code in the header so I can't see what may be up.
Mar 4 '14 #6
donbock
2,426 Expert 2GB
An easily reversible way to eliminate code is conditional compilation:
Expand|Select|Wrap|Line Numbers
  1. #if 0
  2. Code to be eliminated
  3. #endif
Mar 5 '14 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Vincento Harris | last post by:
Sql Server 7 Standard Edition My Server was renamed and the normal steps of reinstalling and running sp_dropserver and sp_addserver were followed. Everything seems to work fine but jobs from the...
6
by: jmborr | last post by:
While running make, I obtain the following error: make: *** No rule to make target `amino_acid_param.h', needed by `pdb2txt_relax.o'. Stop. I'm confused, since header files (*.h) shouldn't...
2
by: JimBo | last post by:
I just download fox toolkit.. and whenever I try to compile one of the example programs that comes with it.. I get an error much. Here is an example of what I see when I try to compile the...
2
by: mohamed farouk | last post by:
hi everyone i have sql database containing the name of person and his telephone number, i select the name from combo box and I want to click on the button make dial action so i can open the port...
5
by: Brian Henry | last post by:
I created a setup project for my VB.NET app and want to make it start up with windows logging in, so i told it to place it into the startup group of the users program group in the start menu (like...
1
by: Mark Asbach | last post by:
Hi pythonians, I'm one of the maintainers of an open source image processing toolkit (OpenCV) and responsible for parts of the autotools setup. The package mainly consists of four shared...
5
by: webandwe | last post by:
Hi I just need some code tips or ideas. I need to build a part of DB which has details of certain food providers at shelters. Here is what I need to build extra Once you click a link on...
10
by: Johs | last post by:
I have a source file called project.c. In the same folder I have a Makefile containing: CC=gcc CFLAGS=-g project: project.c $(CC) $(CFLAGS) project.c -o project
1
by: Vladimir M | last post by:
Hi everybody! I have SUSE 10 (SLES). I have downloaded PostgreSQL 8.3 from www.postgersql.org. While I compile it, I recieved error: make: *** Absent rule for target assemble...
3
by: Sam Zuhbi | last post by:
Hi, I was wondering how do I make the next record button on my access 2007 form stop at the last record, I want to make sure that if it does not create a new record if it reaches the last record...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.