Skip to content

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.

  1. 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.
  1. Making changes to the build files
Clone this wiki locally