Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17075

Type mismatch using CC_CALLBACK

$
0
0

@Levis wrote:

I've a problem with code analysis write some simple functions in C++.

This is a sample block:

and this is the error reported by CLion using CMake v3.3.2

"Parameter type mismatch: Expression must be rvalue"

I really don't know what's the problem.
If I compile with Visual Studio it's all ok, but with CMake I got this.

I have already set the -fpermissive flag.

This occurs with all CC_CALLBACK and I noticed that if I change this with &this it probably works, but I don't know if I have to change this or not.

Please help me, thank you.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 17075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>