linkage specification contradicts earlier specification for 'function'
The function is already declared with a different linkage specifier.
Possible cause
Change the extern statements so that the linkages agree.
Example
extern void func( void ); // implicit C++ linkage extern "C" void func( void ); // error