extern"C"
{
void Function1( char a, char b );
void Function1( double b );
}
int main()
{
return 0;
}
$ g++ test.cc
test.cc:4: error: declaration of C function ‘void Function1(double)’ conflicts with
test.cc:3: error: previous declaration ‘void Function1(char, char)’ here
extern"C"
{
void Function1( char a, char b );
// void Function1( double b ); //C doesn't allow it
}
void Function1( double b ); //then I just overload it outside
int main()
{
return 0;
}