I'm still trying to compile a C console application, the compilation procedure is still not with the error below:
"Main.c", line 51: error #2040: expected an identifier extern "C" void TreatReceivedSignal( int NoSignal ) ; ^ 1 error detected in the compilation of "Main.c". gmake: *** [Main.o] Error 2
below is the extern method declaration in C code:
extern "C" void TreatReceivedSignal( int NoSignal ) ;
I am using the HP-UX aCC compiler [HP C / aC ++ B3910B A.06.26], I also enabled the -Ae compilation flag to enable C99 support. It seems that the compiler cannot recognize "extern" C "" as a reserved word C, some other compilation flag may be set. Any idea, please, can solve this problem? Thanks a lot in advance. Relations
jamel source share