Thread: Makefiles
View Single Post
Old 21st October 2008
JMJ_coder JMJ_coder is offline
VPN Cryptographer
 
Join Date: May 2008
Posts: 464
Default

Thank you ocicat, that was enlightening.

One more follow up question. With the class thing, adding it to the main.cpp, I would
Code:
#include "thing.h"
and then would I link in the Makefile
Code:
a.out: main.o thing.o
        g++ main.o thing.o
or would the simple
Code:
#include "thing.h"
automatically link what needs to be linked?
__________________
And the WORD was made flesh, and dwelt among us. (John 1:14)
Reply With Quote