syntax error in ksdk 1.1.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

syntax error in ksdk 1.1.0

1,413 次查看
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

标签 (1)
0 项奖励
回复
6 回复数

1,259 次查看
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 项奖励
回复

1,259 次查看
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 项奖励
回复

1,259 次查看
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 项奖励
回复

1,259 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Kevin,

Which chip do you use ?

And which IDE do you use ?

BR

Alice

0 项奖励
回复

1,259 次查看
kalden_srcinc
Contributor IV

fsl_enet_driver.h has the issue as well

0 项奖励
回复

1,259 次查看
kalden_srcinc
Contributor IV

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

0 项奖励
回复