Date: Wed, 17 Sep 2008 15:21:07 -0700 (PDT) From: Dean Huffaker <pfeathers@rocketmail.com> To: freebsd-questions@freebsd.org Subject: GCC Compliler Message-ID: <493475.50211.qm@web59504.mail.ac4.yahoo.com>
next in thread | raw e-mail | index | archive | help
I need to compile a c module called camerad.=A0 I have a=A0makefile that is= suppose to be used to perform=A0this compile job.=A0 Problem is that I get= an error and I don't understand exactly what the problem is.=A0 Here is th= e execution of the makefile with the error and then I did a cat on the make= file itself.=A0 =0A=A0=0ACameraMgr2# ./makefile=0Acamerad.o:: not found=0AC= ameraMgr2# cat makefile=0Acamerad : camerad.o ../shared/util.o=0A=A0=A0=A0= =A0=A0=A0=A0 gcc -o camerad camerad.o ../shared/util.o=0A=0Acamerad.o: came= rad.c camerad.h ../shared/util.h=0A=A0=A0=A0=A0=A0=A0=A0 gcc -I../shared -c= camerad.c=0A=A0=0A=A0=0AThe first part of the makefile makes sense to me.= =A0 Create a camerad using camera.o and stuff from .shared/util.o=0Acamerad= : camerad.o ../shared/util.o=0A=A0=A0=A0=A0=A0=A0=A0 gcc -o camerad camera= d.o ../shared/util.o=0A=A0=0AAnd that part works fine.=A0 If I just run tho= se two statements it works OK.=A0 =0A=A0=0ABut the second part does not mak= e sense. and It gets the error camerad.o not found.=0Acamerad.o: camerad.c = camerad.h ../shared/util.h=0A=A0=A0=A0=A0=A0=A0=A0 gcc -I../shared -c camer= ad.c=A0 =0A=A0=0A=A0=0AAny idea what might be going on?=0A=0A=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?493475.50211.qm>