Re: Undefined References

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 1, 2007 7:27 AM, Michael Sullivan <michael@xxxxxxxxxxxxxxxx> wrote:
> My Makefile is now:
...
> %.o : %.cpp
>         $(CXX) $(CFLAGS) $< -c $@ $(INC)

The '-c' is misplaced.  The '$@' refers to the object file and the
'$<' refers to the source file.  So:

 %.o : %.cpp
         $(CXX) $(CFLAGS) -c $< -o $@ $(INC)

-Tom

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux