How to solve this pointer error? (from incompatible pointer type)

65 views Asked by At

I've this function:(myvariable is un unsigned int) config_setting_lookup_int64 is the libconfig.h function -> int config_lookup_int64 (const config t * config, [Function] const char * path, long long * value)

config_setting_lookup_int64(file, "myvariable", &myvariable);

I can see this warning: passing argument 3 of 'config_setting_lookup_int64' from incompatible pointer type

To solve the problem, I tried to write:

config_setting_lookup_int64(file, "myvariable", myvariable);

But I can see another warning: passing argument 3 of 'config_setting_lookup_int64' makes pointer from integer without a cast. How can I solve the problem? Thank you so much!

0

There are 0 answers