Adding Additional Source Code
Adding C++ code is simple. Simply add your *.hpp and *.cpp files and you are good to go! The file extensions must be *.hpp or *.cpp
Adding C source code is a bit more hassle since compiling with mixed C/C++ requires some extra headers, so please use the following code as template for your header file. The *.c file doesn't require any extra stuff though.
#ifndef MY_NEW_FILE_H__ #define MY_NEW_FILE_H__ /* need the C++ header */ #ifdef __cplusplus extern "C" #endif /* Now include your function headers */ #ifdef __cplusplus } #endif #endif /* end MY_NEW_FILE_H__ */