dkurry
asked on
linking, compiling (g++)
I am using g++ as my compiler and I have header files associated with their respective source files. When I compile the source files do I have to throw and special flags to tell the compiler that the headers are associated witht the file. For example, how would I compile the following files and run the program.
Mamal.h Dog.h
Mamal.cpp Dog.cpp
Program.cpp (has #define "Dog.h" in file)
Mamal.h Dog.h
Mamal.cpp Dog.cpp
Program.cpp (has #define "Dog.h" in file)
I am not sure about g++, but I would think that it should be able to compile the files. You proboly have to first compile the dog and mamal files into Obj files then link them.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.