Hi !
I need the command to compile a C++ Project in Ubuntu.
Help me please!!
I am able to compile and see the output if created as single source file.

In this case I have three file stock.h , stock.cpp, usestock.cpp in a folder which is the working directory. The usestock.cpp has the main() , stock.cpp is an implementation file which has methods, definition.

Thank you.

In its simplest form: g++ stock.cpp usestock.cpp -o myprogram <Enter> You can also install Code::Blocks which will let you easily create and compile multi-file projects.