Ok, I don't know C and I am a newbie to C++/Qt, so here is my problem.
I have a Qt program which works fine, until I try to link to a C library.

I put the required lines into the .pro file and the library appears to link just fine. No errors on compile/link.
Yes, I included the required C library .h files.
Now, how to properly call a function in the C library? This should be easy for you experts

In the C library header, we have: int (*rig_init) (RIG * rig); And the correct value for my rig is 32.
So in my mainwindow.h I put: int* rig;
Then in mainwindow.cpp I put: rig = rig_init(32);

And when I try to build, I get: mainwindow.cpp:238: error: cannot convert 'RIG*' to 'int*' in assignment

So, please help me out here and tell a newbie what I am doing wrong, and thanks!