Typically in C++ classes are split into a header (.h) and a class (.cpp or .cc) file. Then, if the class is used in another source file, the header file is included. For instance:
Date class has Date.h and Date.cc file.
main.cc would use:
to include the Date class.
However, cloud9 seems only to work if the .cc file is included. If I try to include the .h file I get an error saying the class methods are undefined. One problem with this is that the included .cc file cannot have its own main function. This also means that code imported from other IDEs must be modified.
If this is unexpected, what should I do to fix? If not unexpected, could someone please explain the reasoning for this?