I have literally been up all night working on this darn code, and I finally got it running right, but not I cannot get it to work into the makefile. Here is my makefile:
I have tried just about every combination to no avail. It is for an assignment for a class which I am taking online, and it's not covered in the book, but it's in the Supplemental Website, which I do not have access to because I bought my book used and the code had already been used. So basically I'm stuck trying to figure this out on my own and I'm lost. Here is part of my code( just the beginning of each file so you can see what is included):
test.cpp:
1 2 3 4 5
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include "id.h"
#include "id.cpp" // in lieu of makefile
shows that you are missing the dot after the -I command, so make is thinking that the include
directory is id.cpp instead of the current directory - which would mean that the line would be missing the name of the actual file to be compiled - which would cause the "no input file error"