1833759 Members
2146 Online
110063 Solutions
New Discussion

Re: stdio.h and stdlib.h

 
SOLVED
Go to solution
Andrew Luis Arruza
Frequent Advisor

stdio.h and stdlib.h

In trying to compile C code I'm getting an error that it can't find the "fcloseall()" function. When I do a "which stdio.h" or "which stdlib.h" I get a message that there isn't one in my path. Do these "stdlib.h" and "stdio.h" get included in the ansic package? This server is running 10.20.
Thanks for any/all help.
Andy
It is, after all, a matter of survival!!
2 REPLIES 2
Stefan Farrelly
Honored Contributor
Solution

Re: stdio.h and stdlib.h


stdio.h and stdlib.h are both part of the base HP-UX install.
On 10.20 if you do an swlist -l bundle you should see;

HPUXEngRT800 English non-Graphics Runtime HP-UX Environment

If you do an swlist -l file HPUXEngRT800 | grep "stdio.h"
you should see it listed under the ProgSupport fileset.

If these files dont exist then something is wrong with your base HP-UX install as on 11.0 the ProgSupport fileset is also part of a basic HPUX install (as on 10.20). You could install the ProgSupport fileset manually from the HP-UX Core (install) CD if needed. These header files are also included in the aC++ compiler but this is purchaseable and you dont need it.
I noticed on a recently installed server that the ProgSupport fileset was missing and I installed it from the Core/install CD. I have no idea what someone selected on the original install to omit this important fileset.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Voloshin Igor
Occasional Contributor

Re: stdio.h and stdlib.h

Hi,
The 'which' command searches an executables only, so it will not find the headers stdio.h and stdlib.h. These headers, like the other C/C++ headers, are placed under /usr/include directory.
Relating the fcloseall() function, I didn't find such a function in the ANSII C. If it is there, please, let me know.
Igor