Newbie -  Having problem Porting Code

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

Newbie -  Having problem Porting Code

950 次查看
pk2
Contributor III

I am a newbie to CW10.2 and the development tools.

 

I am trying to port regular C code to a member of the Kinetis K50 family.

 

I get an error:

 

illegal implicit conversion from "  struct MY_CMD** to struct MY_CMD*  "  My reading on the web tells me the Structure is legal in C but not C++. 

 

Is there a way to disable the C++ feature support in the compiler and have it be just C?

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

776 次查看
kef
Specialist I

It has nothing to do with C++.

struct MY_CMD** is a pointer to pointer to struct

 struct MY_CMD* is a pointer to struct

Of course these are different and incompatible types.