Discussion:
Make File not working on UNIX box
(too old to reply)
Ryan
2010-06-14 20:12:04 UTC
Permalink
I am running linux at home (that I write my code in). The make file
works here, but I get "Don't know how to make target `<My first Listed
object>.o'"

I used the format that we saw in class. Also g++ -o euchre ...

where ... is all my .cpp files works.

I am not sure why the Makefile should be different on the student box?

please help.

Thanks
Ryan
Ryan
2010-06-15 17:14:36 UTC
Permalink
Post by Ryan
I am running linux at home (that I write my code in). The make file
works here, but I get "Don't know how to make target `<My first Listed
object>.o'"
I used the format that we saw in class. Also g++ -o euchre ...
where ... is all my .cpp files works.
I am not sure why the Makefile should be different on the student box?
please help.
Thanks
Ryan
It seems to work on the linux box (006linux), but I am still wondering
why it would be different on the UNIX boxes? Is g++ not installed the
same way?
Caroline Kierstead
2010-06-15 19:20:24 UTC
Permalink
Post by Ryan
Post by Ryan
I am running linux at home (that I write my code in). The make file
works here, but I get "Don't know how to make target `<My first Listed
object>.o'"
I used the format that we saw in class. Also g++ -o euchre ...
where ... is all my .cpp files works.
I am not sure why the Makefile should be different on the student box?
please help.
It seems to work on the linux box (006linux), but I am still wondering
why it would be different on the UNIX boxes? Is g++ not installed the
same way?
You may be invoking a different make on Solaris than on Ubuntu. The Ubuntu
machine defaults to GNU make (gmake). You may not be using GNU make on Solaris.
See the results of "which make"

cpu102 [70] [3:09pm] [/u3/ctkierstead] which make
/software/gnu/bin/make

shows GNU make, whereas

cpu08:~> which make
/usr/ccs/bin/make

shows the Solaris make. You can either change your search path, or explicitly
use "gmake" instead of "make" on the command line.
--
--
Caroline Kierstead, Undergraduate Operations Coordinator
David R. Cheriton School of Computer Science
University of Waterloo, DC3122 (519) 888-4567 x36226
Loading...