Adding .cpp files to a WICED project

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

I'm trying to make a sample application for the BCM943362 module and wondering how does one go about setting up the environment to add .cpp application files to the project? (WICED SDK 2.4.1)

I'm getting the following compile error:

/Applications/WICED/WICED-SDK-2.4.1/Wiced/RTOS/ThreadX/wiced/wiced_rtos.c:156: undefined reference to `application_start'


Any pointers will be helpful!

Thanks!

Mohit

0 Likes
3 Replies
SeyhanA_31
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi,

The WICED and libraries are writen in C. The "application_start" is the entry point for user applications to start executing on an main thread, you may think like it is the main() for the application. The application_start() is called by the main thread to initiate user application.

Are you trying to write your application in C and save it in .cpp extension file names?

Thanks,

Seyhan

0 Likes
Anonymous
Not applicable

Hello Seyhan,

I have a set of libraries written in .cpp that I wish to add/use in my application.

Thanks!

0 Likes
Anonymous
Not applicable

Update: I was able to get away with that error by adding extern "C" in my main application file.

0 Likes