Newbie -  Having problem Porting Code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Newbie -  Having problem Porting Code

954件の閲覧回数
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 返信

780件の閲覧回数
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.