4
Contributors
4
Replies
5
Views
13 Years
Discussion Span
Last Post by kc0arf
0

Exactly how do you create multi-file project and how do you compile it in C++ using Linux?

EZ way, by using some IDE like this.

Not so EZ way (but you will learn a lot), by using makefiles as described here and in other sources.

0

A programmer that says an editor is the answer...geesh. The answer is with the include statment with something like this...

#include "fileToInclude.cpp"

For more info just look up the uses of the include in C/C++

0

[High Guard]Just follow the links before start typing nonsenses.

The 2nd one will TEACH you what the #include directive is intended for.[/High Guard]

0

Hello,

You might also wish to look up and how to write makefiles. Unfortunately, I do not remember the exact sequence anymore, as I have moved on to system administration instead of programming, but makefiles can really make your life easier.

Christian

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.