Lesson Learned [25/7/2014]

1. GCC does not compile header files

    Incorrect:
 
.PHONY: all
all: queue.o priority_queue.o
$(ARCHIVER) cr $(OUTPUT) $^

# This compilation executes but no queue.o file is output as g++ does not compile headers
queue.o : queue.h
         $(CC) $(DEBUG_FLAGS) $(RELEASE_FLAGS $(SHARED_FLAGS) -c $^

priority_queue.o : priority_queue.h priority_queue.cpp
$(CC) $(DEBUG_FLAGS) $(RELEASE_FLAGS) $(SHARED_FLAGS) -c $^

   Correct:

Simply only compile the implementation files.

Comments

  1. Soccer Betting & Online Blackjack at VieCasino! dafabet link dafabet link クイーンカジノ クイーンカジノ fun88 soikeotot fun88 soikeotot 238Best Sports Betting Picks and Parlays Nfl Week 3

    ReplyDelete
  2. The King Casino Hotel | Jamul Casino & Spa
    The septcasino.com King Casino worrione Hotel is set 1 https://septcasino.com/review/merit-casino/ mile south of Jamul Casino, 1 MPRC Blvd, Jamul, jancasino.com Georgia. View https://jancasino.com/review/merit-casino/ map. This casino offers a variety of gaming options including slots,

    ReplyDelete

Post a Comment

Popular Posts