I have a C code function, which I need to call from the class constructor.
Class a{
.....
}
//Included the header file in the class and
//declared the function globally as extern
extern void ab(void); //function available in the c code
a::a() //constructor of class a
{
::ab(); //calling the non member function - giving an error
}
It is giving an error : undefined reference to `ab()'
Can anyone help me to solve this issue?