Compiler Error 144

"a value of type "X" cannot be used to initialize an entity of type "Y""

Seems to be a type error during initialization. It could be that you didn't set up your class inheritance properly and are trying to call a function on a class with the wrong type.

In my application it occurred when trying to call a member function using the RPC library without registering a type as a public Base.

If trying to port C code to C++, and encountering an error like the following maybe this forum post could be useful?

"a value of type "void *" cannot be used to initialize an entity of type "void (*const)(std::uint32_t)"" in file "usbuser.c/"

http://mbed.org/forum/helloworld/topic/2160/?page=1#comment-10963


All wikipages