stdlib.h 
Author Message
 stdlib.h

Hi all,

My compiler didn't have a stdlib.h file so I downloaded a stdlib.zip
from an oak.oakland.edu mirror site.  I opened the zip file and got a
whole directory of various .asm files, an stdlib.a file, an stdlib.lib file,
and a document file.  In the document file it explains how to include the
stdlib.a file but there is nothing about how to use it as an stdlib.h file.
I am just wondering how do I use this file as an stdlib.h file in my
programs?  Or isn't that possible?  If not, then why is this file named
an stdlib file?  

Thanks for any advice.

Marilyn
Writer specializing in science, nature, animals and environment
http://www.*-*-*.com/ ~marilpok



Sun, 30 Apr 2000 03:00:00 GMT  
 stdlib.h



Quote:
> Hi all,

> My compiler didn't have a stdlib.h file so I downloaded a
stdlib.zip
> from an oak.oakland.edu mirror site.  I opened the zip file
and got a
> whole directory of various .asm files, an stdlib.a file, an
stdlib.lib file,
> and a document file.  In the document file it explains how to
include the
> stdlib.a file but there is nothing about how to use it as an
stdlib.h file.
> I am just wondering how do I use this file as an stdlib.h file
in my
> programs?  Or isn't that possible?  If not, then why is this
file named
> an stdlib file?  

> Thanks for any advice.

> Marilyn
> Writer specializing in science, nature, animals and
environment
> http://world.std.com/~marilpok


You probably can't use a header file from another compiler (and
maybe not a different version of the same compiler).  The header
files are where some of the work of translating the standard C
environment to the specific processor and operating system takes
place.

Why didn't your compiler come with a stdlib.h file?  If you
bought your compiler, talk to the people who made it.  If it is
a shareware/freeware compiler, see if you can find another one
that is more up to date.

The stdlib.h header has been required for standard C since ANSI
standard of 1989.  If the compiler actually comes without this
header, it is a pre standard antique and not worth using if
there is any other choice.

Jack



Sun, 30 Apr 2000 03:00:00 GMT  
 stdlib.h



Quote:
> Hi all,

> My compiler didn't have a stdlib.h file so I downloaded a stdlib.zip
> from an oak.oakland.edu mirror site.  I opened the zip file and got a
> whole directory of various .asm files, an stdlib.a file, an stdlib.lib
file,
> and a document file.  In the document file it explains how to include the
> stdlib.a file but there is nothing about how to use it as an stdlib.h
file.
> I am just wondering how do I use this file as an stdlib.h file in my
> programs? Or isn't that possible?  If not, then why is this file named
> an stdlib file?  

> Thanks for any advice.

> Marilyn
> Writer specializing in science, nature, animals and environment
> http://world.std.com/~marilpok


If stdlib.h did not come with your compiler, then your
compiler is broke. Re-install, get a fresh version of your
compiler from the net, but don't install just another
stdlib.h from somewhere.

The reason for naming the file stdlib is that they provide
an implementation of the standard library. This is always
supplied with your compiler. You don't need it, unless
you are deeply involved into compiler/library/system
development.

Check your installation again. It is probably in some
INCLUDE directory (/usr/include on UNIX, \<PACKAGE>\INCLUDE
on most DOS systems). If you find it in there, then it's
just a compiler-flag/environment variable to give your
compiler a hint. Check your manual.

Marco.
---------------------
Working on a laptop in a plane causes a crash of the latter (not the
former).



Sun, 30 Apr 2000 03:00:00 GMT  
 stdlib.h

you have to add the routines of the new lib to the smallc lib for example
(sc.lib) use the lib utility that come with your compiler



Mon, 01 May 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. including stdlib.h

2. ltoa in stdlib.h

3. RAND_MAX & stdlib.h

4. Problems with strtol() from <stdlib.h>

5. how to deal with stdlib.h

6. stdlib.h

7. malloc.h vs stdlib.h

8. Compare function in qsort (stdlib.h)

9. stdlib: output of 2nd printf appears before first

10. string.h and stdlib.h

11. stdlib.h

12. book about <stdlib.h>

 

 
Powered by phpBB® Forum Software