About | Rules and Guide | Sign In/Create Account | Write a Post
Construction1990’s Internet Montage? No!
Please excuse the site weirdness. Mike is fixing and making things.
Ludum Dare 31 — Coming December 5th-8th 2014!

  • ??? Begins: in 9 days, 15 hours, 15 minutes, 27 seconds
  • October Ends: in 10 days, 15 hours, 27 minutes, 27 seconds
  • Ludum Dare 31 begins: in 45 days, 16 hours, 15 minutes, 27 seconds
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!)

    [ October Challenge 2014 | Resources | Submit/Edit | View All ]


    Whoops.

    Posted by (twitter: @quaIiaa)
    July 16th, 2012 2:20 pm

    OBJECTS = $(SOURCES:.ccp=.o)

    Who wants to guess what happened when I ran make clean?

    (The c++ file format I was using was .cpp)

    2 Responses to “Whoops.”

    1. mohammad says:

      unless there is a varible called $ then that was your problem
      oh and you put the file name cpp to equal 0
      oh and unless this was noticed the = boolean is too close to cpp
      if im wrong go ahead and correct me.
      im not a BIG fan of c++ but i know a little

      • Pazaz says:

        Mohammad, in a Makefile $ is the prefix to a variable, and that name is contained in the parenthesis.
        This case is a Pattern match and replace, anything in SOURCES that is equal to .cpp is now equal to .o in OBJECTS, very useful.

        SOURCES = Main.cpp OtherFile.cpp
        OBJECTS = $(SOURCES:.cpp=.o)

        OBJECTS now contains Main.o OtherFile.o

    Leave a Reply

    You must be logged in to post a comment.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]