Thread: G++ Makefile Help Needed

  1. #16
    Registered User
    Join Date
    Apr 2007
    Posts
    12
    Quote Originally Posted by brewbuck View Post
    These are just programming errors, not related to the makefile. You seem to not be including a proper .h somewhere.
    Hmm. This gives me an idea which I'll try in just a moment.



    Is the purpose of this assignment to learn how to write makefiles? If not, I think this requirement is stupid. But I guess it is what it is. In that case, have a look at my original post -- I'll modify the makefile to try to allow you to build from your instructor's files directly.
    Not at all; it's just a project to write a k-ary heap and check the run times of the various operations. I do agree that the requirement is stupid. I don't see the point in it.

    Thanks again for all of your help. I'll try the idea that just came to me and let you know.

    EDIT: My idea was to include the same header objects from the teacher's CPUTimer files, but this doesn't seem to have helped. Oh well..
    Last edited by OWD2k7; 04-30-2007 at 06:22 PM.

  2. #17
    Registered User
    Join Date
    Apr 2007
    Posts
    12
    Alright, I was finally able to make it all work. HUGE thanks, brewbuck; I really appreciated it.

  3. #18
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by OWD2k7 View Post
    Alright, I was finally able to make it all work. HUGE thanks, brewbuck; I really appreciated it.
    No problem. That makefile, by the way, can be adapted to future projects. Just drop it in the directory and replace SRCS, HRDS, and TARGET as appropriate.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile Problem: None rule to make target
    By chris24300 in forum Linux Programming
    Replies: 25
    Last Post: 06-17-2009, 09:45 AM
  2. Need help with makefile
    By New_Programmer in forum C++ Programming
    Replies: 5
    Last Post: 03-31-2009, 04:55 PM
  3. Building a project using a Makefile
    By starcatcher in forum Windows Programming
    Replies: 2
    Last Post: 11-23-2008, 11:50 PM
  4. C Makefile Help needed
    By MasteAceVentura in forum C Programming
    Replies: 3
    Last Post: 03-12-2008, 08:54 PM
  5. Need help with Makefile
    By xshapirox in forum C++ Programming
    Replies: 14
    Last Post: 09-28-2004, 03:32 PM