INLINE method compilation error

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

cross mob
Anonymous
Not applicable

Hi,

I've been getting several errors and all of them are inline methods. I think that FreeRTOS compilation, does not support inline methods and the gcc compiler might need a flag for inline method compilation.

111:8: error: unknown type name 'INLINE'

static INLINE TW_SSL * TW_NEW_SERVER(SSL_CTX *ssl_ctx, twSocket * client_fd) {

error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

static INLINE TW_SSL * TW_NEW_SERVER(SSL_CTX *ssl_ctx, twSocket * client_fd) {

I've checked online suggestions, I'm definitely not missing any semicolon or bracket.

This is the build command:

sudo ./make demo.tw-BCM943364WCD1-FreeRTOS-LwIP-SDIO download run

Best,

NV

0 Likes
1 Solution
Anonymous
Not applicable

Hey, Thanks for the response. I see there was some issue with the header file where the inline type def was defined. This issue has been resolved.

View solution in original post

0 Likes
4 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

I've asked jamesle1​ on the applications team to respond to this one when he has time.

cgarissdavid_armour

0 Likes
Anonymous
Not applicable

Hello.

I'll look into to it more later, but have you just tried "inline" all lower case?

James

0 Likes
Anonymous
Not applicable

Hey, Thanks for the response. I see there was some issue with the header file where the inline type def was defined. This issue has been resolved.

0 Likes
Anonymous
Not applicable

Good. Thank you for letting us know.

James