Hi guys
I have a question. I would like to compile program using seperate compilation method. Is it possible to do tghat with DEv-C++. I have 3 files. One with name: lab4.h, second : main.cpp and the one that I need to submit is: lab4.cpp
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-08-17
I think "separate compilation" is clear enough - that is after all the correct term.
The answer the OP seeks is to use the project facility. File->New->Project, once created (use a template or an empty project), use the Project menu to add the source files (or right click context menu in the project pane). You only need to add the .cpp files. The .h files can be added if you wish, Dev-C++ will ignore them for the purposes of compilation (you include them in your code), but it makes it convenient for editing to have them in the project pane.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys
I have a question. I would like to compile program using seperate compilation method. Is it possible to do tghat with DEv-C++. I have 3 files. One with name: lab4.h, second : main.cpp and the one that I need to submit is: lab4.cpp
Thanks
I think "separate compilation" is clear enough - that is after all the correct term.
The answer the OP seeks is to use the project facility. File->New->Project, once created (use a template or an empty project), use the Project menu to add the source files (or right click context menu in the project pane). You only need to add the .cpp files. The .h files can be added if you wish, Dev-C++ will ignore them for the purposes of compilation (you include them in your code), but it makes it convenient for editing to have them in the project pane.
Clifford
I think people are having a problem understanding the question.
What do you mean by a "seperate compilation method"? What are you trying to do?