Newbie -  Having problem Porting Code

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

Newbie -  Having problem Porting Code

476 Views
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?

Labels (1)
0 Kudos
1 Reply

302 Views
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.