syntax error in ksdk 1.1.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

syntax error in ksdk 1.1.0

525 Views
kalden_srcinc
Contributor IV

fsl_adc16_hal.h and fsl_adc16_driver.h both have a syntax error when building with a c++ compiler. 

 

You have:

#if defined(__cplusplus)

extern }

#endif

 

when it should be

#if defined(__cplusplus)

}

#endif

 

I'm not sure if this exists elsewhere

Labels (1)
0 Kudos
6 Replies

371 Views
kalden_srcinc
Contributor IV

Found something else c++ related:

KSDK_1.1.0/platform/system/inc/fsl_clock_manager.h:480:54: error: parameter 'callbacksPtr' includes pointer to array of unknown bound 'clock_manager_callback_user_config_t* [] {aka ClockManagerCallbackUserConfig* []}'

                               uint8_t callbacksNumber);

If you include fsl_clock_manager in a cpp file you get this error.  C++ doesn't like the array syntax in the function call without a size bound.

0 Kudos

371 Views
DavidS
NXP Employee
NXP Employee

Hi Kevin,

I don't do C++ often so cannot provide much guidance but I have seen another post on C++ I want you to be aware of.

Regards,

David

KDS linker error | Freescale Community

0 Kudos

371 Views
kalden_srcinc
Contributor IV

These are minor syntax issues that I can patch myself without much trouble.  I just wanted to let Freescale know so that maybe they can be officially fixed in the next release.  Thanks for the link though.

0 Kudos

371 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Kevin,

Which chip do you use ?

And which IDE do you use ?

BR

Alice

0 Kudos

371 Views
kalden_srcinc
Contributor IV

fsl_enet_driver.h has the issue as well

0 Kudos

371 Views
kalden_srcinc
Contributor IV

I'm using a TWR-K64F120M.  Just building from the command line

0 Kudos