[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 4.1.5 Minimum Application Requirements

For an application to be considered a proper "Crystal Space application", there are a few requirements. These are:

- Each and every source file (``.cpp'`) must import ``cssysdef.h'` as the very first included Crystal Space header files. ``cssysdef.h'` should never be included by a header file. The reason for this is that ``cssysdef.h'` has modifiers which control what should be defined and what not. If a header file would include ``cssysdef.h'` on its own the cpp file would not be able to include it again (due to header protection) and would then not be able to add the additional stuff that it may need.
- `CS_IMPLEMENT_APPLICATION` needs to be put in the beginning of the file (after the includes).
- The `main()` function must be declared with the following prototype:

      int main(int argc, char const* argv[]);

Following these guidelines will help to ensure that your application builds and runs on all platforms supported by Crystal Space.

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ]

This document was generated using texi2html 1.76.