cc <sourcefile.c> -o <executablename> -lppruntim -ltdusr -lcliv2 -lnsl
Note: Red Hat Linux 3.0
A compilation error occurs if:
To fix the compilation error:
1 Add this code to the .pc file:
=====================================================================
#include <ctype.h> __const unsigned short int *__ctype_b;
__const __int32_t *__ctype_tolower;
__const __int32_t *__ctype_toupper;
void ctSetup()
{
__ctype_b = *(__ctype_b_loc());
}
=====================================================================
2 Call ctSetup from main() as first statement.