compiling .cpp files
Hello, I am trying to compile the .cpp files and .h files to be able to run a program called PALS. I have like 30 files in a directory (both .cpp and .h) and I do not know if I should just try to compile them all with g++ command. Would this give me an executable file right away?
thanks Leo |
It is easy to try:
Code:
g++ *.cpp -o pals Code:
./pals |
Quote:
|
if you want one executable from all the 30 files, you should have a Makefile or you will have to write your own.
|
All times are GMT -5. The time now is 11:45 PM. |