LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-02-2012, 04:48 AM   #1
chinu
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
Question ns2.34:problem in running make.


hi everyone,
i am using ns2.34 in ubuntu 10.10 on vmware . I have made a new file named tcpmyfile.c and i have included it in the makefile as "tcp/tcpmyfile.o" . but whenever i run make in terminal it gives out the result as this
->>make: *** No rule to make target `tcp/linux/mytcp.o', needed by `ns'. Stop.



any suggestions would do.
thnks in advance,
Chinu

Last edited by chinu; 05-02-2012 at 04:49 AM.
 
Old 05-02-2012, 05:40 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Looks like a typo.

Are you sure that the Makefile says 'tcp/tcpmyfile.o' ?
It's asking for 'tcp/linux/mytcp.o'.
Or is there actually a new file by name "tcp/linux/mytcp.cc" ? ?
 
Old 05-02-2012, 07:30 AM   #3
chinu
LQ Newbie
 
Registered: Mar 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
hi knudfl,
thnks a lot but ........
i am doing the linux implementation of ns2 hence i need to write the file in .c and then change the makefile to get the results.
any other suggestions as to why the error might crop up...
 
Old 05-02-2012, 08:18 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
... So which files did you add ? ? Please list them all.

tcp/tcpmyfile.cc ?
tcp/linux/mytcp.cc ? Or ?
 
  


Reply

Tags
make, makefile, ns2



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 01:07 PM
after installation ns2 i face problem during running and example on fedora 13 Ali shoaib abbasi Linux - Newbie 4 10-20-2011 04:31 PM
[SOLVED] NS2 LEACH make problem dkpcad Linux - Wireless Networking 2 10-02-2010 09:04 AM
problem with re-make in ns2.26 newbie06 Red Hat 1 12-18-2006 06:42 PM

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

All times are GMT -5. The time now is 03:05 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
Open Source Consulting | Domain Registration