Results 1 to 2 of 2
Using putty I created 5 files: main.cpp, employee.cpp, address.cpp, employee.h, and address.h
I have a file that will invoke the make command, but need to build a makefile with an ...
- 07-04-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 2
makefile
Using putty I created 5 files: main.cpp, employee.cpp, address.cpp, employee.h, and address.h
I have a file that will invoke the make command, but need to build a makefile with an executable file named myprogram.
How do I do this? What will the make file look like?
Sorry I'm very new to all of this and any help would be very nice.
- 07-04-2011 #2
Well, it would be something like:
I have no idea what the options and libraries are for a C++ program. You'll have to look them up.Code:main.o: main.cpp g++ (some options) -c -o main.o main.cpp employee.o: employee.cpp employee.h g++ (some options) -c -o employee.o employee.cpp address.o: address.cpp address.h g++ (some options) -c -o address.o address.cpp all: main.o employee.o address.o ld (libraries, etc) main.o employee.o address.o -o myprogram"I'm just a little old lady; don't try to dazzle me with jargon!"


Reply With Quote

