-
Notifications
You must be signed in to change notification settings - Fork 5
Configuration For Cpp Compilation
ibroheem edited this page Apr 30, 2017
·
4 revisions
Here, all necessary details needed for successful C++ code compilation for the device is looked into.
- Make sure all the C library structs, variables, and functions in the SDK headers are enclosed in extern "C" {}. Otherwise it won't work with C++, a lot of linking error will be generated.
For example:
#include extern "C" { struct example {}; void TP_ClearScrn(); .... .... }
To understand why this is necessary, Read this] Lesson of the story: The C++ compilation is quite different from C's.
- Making changes to the build files