Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to compile a program using GCC in SCO, and I am unable to find the ctype.h file. I have managed to find the other files that were missing when compiling, like string.h etc.

I was getting this returned before I found where most of the other files were:

In file included from test.c:76:
strutil.c:2: string.h: No such file or directory
strutil.c:3: stdio.h: No such file or directory
In file included from test.c:77:
pcutils.h:3: ctype.h: No such file or directory
In file included from test.c:78:
pcutils.c:2: string.h: No such file or directory
pcutils.c:3: stdio.h: No such file or directory
test.c:79: time.h: No such file or directory
test.c:81: stdio.h: No such file or directory

Most of those files are in /opt/K/SKUNK99/Gcc/2.95.2pl1/usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/include/oldstyle

Now it is showing this:

In file included from test.c:77:
pcutils.h:3: ctype.h: No such file or directory

Therefore my question is:

  • Where can I find the ctype.h file?

This question is related to .profile in SCO

share|improve this question
    
ctype.h is part of the C standard library. You should get that by default. I don't know what OS you're on, but make a search for glibc. –  Emanuel Berg Jul 23 '12 at 15:26
    
I'm using SCO Opensever 5.0.7 –  Kevdog777 Jul 23 '12 at 15:29
    
OK, don't know anything about that, sorry. –  Emanuel Berg Jul 23 '12 at 15:38
    
How did you install GCC? This looks like the Skunkware distribution, did you follow the official instructions? In particular, did you install the system libraries and headers as indicated? –  Gilles Jul 23 '12 at 21:51
    
@Gilles: I installed it using those instructions and also asked a question on this site Install Compiler GCC in SCO. I followed the instruction that hhaamu gave me. –  Kevdog777 Jul 24 '12 at 7:20

1 Answer 1

up vote 2 down vote accepted

ctype.h is part of the standard C library, so it really should be on your system somewhere. I don't use SCO, but on my various FreeBSD machines at home, and the numerous Solaris machines here at work, ctype.h is in /usr/include. If it's not there on your SCO machine, perhaps it's in /usr/local/include? Or perhaps there's some other standard location under SCO. find should be able to tell you where it is, in any case.

share|improve this answer
    
Thank you for that :-) –  Kevdog777 Jul 23 '12 at 17:31
    
It's more complicated than that. On some “exotic” platforms, and I suspect (but I don't know) that SCO is exotic, GCC uses a modified version of the system headers. The installation process should have generated these headers and set the default include path to include their location though. –  Gilles Jul 23 '12 at 21:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.