Problem compiling C++ using C function

Hi,

I have a C++ class that has a declared function void MyClass::helpMe( PAram1, Param2);

I also have an external c function included from a header file containing:

extern "C"
{
int helpMe( Param1, PAram2, Param3, Param4);
}

My function in the MyClass::OtherFunction()

tries to make a call to int i = helpMe( Param1, PAram2, Param3, Param4);

And compilation fails due to the compiler thinking I want the class function helpME, not my C function helpMe.

Any suggestions?

Thanks.




Use the scope resolution operator.

int i = ::helpMe( Param1, PAram2, Param3, Param4);
Thanks for the confirmation. I guess I had some other items causing problems when I tried that last time.

This time it worked.
Topic archived. No new replies allowed.