LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   ns2.34:problem in running make. (http://www.linuxquestions.org/questions/linux-software-2/ns2-34-problem-in-running-make-942884/)

chinu 05-02-2012 04:48 AM

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.

:banghead:

any suggestions would do.
thnks in advance,
Chinu

knudfl 05-02-2012 05:40 AM

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" ? ?

chinu 05-02-2012 07:30 AM

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...

knudfl 05-02-2012 08:18 AM

... So which files did you add ? ? Please list them all.

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


All times are GMT -5. The time now is 11:41 PM.