source: trunk/gcc/libf2c/libI77/README.netlib@ 2693

Last change on this file since 2693 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 9.6 KB
Line 
1If your compiler does not recognize ANSI C headers,
2compile with KR_headers defined: either add -DKR_headers
3to the definition of CFLAGS in the makefile, or insert
4
5#define KR_headers
6
7at the top of f2c.h and fmtlib.c .
8
9
10If you have a really ancient K&R C compiler that does not understand
11void, add -Dvoid=int to the definition of CFLAGS in the makefile.
12
13If you use a C++ compiler, first create a local f2c.h by appending
14f2ch.add to the usual f2c.h, e.g., by issuing the command
15 make f2c.h
16which assumes f2c.h is installed in /usr/include .
17
18If your system lacks /usr/include/fcntl.h , then you
19should simply create an empty fcntl.h in this directory.
20If your compiler then complains about creat and open not
21having a prototype, compile with OPEN_DECL defined.
22On many systems, open and creat are declared in fcntl.h .
23
24If your system has /usr/include/fcntl.h, you may need to add
25-D_POSIX_SOURCE to the makefile's definition of CFLAGS.
26
27If your system's sprintf does not work the way ANSI C
28specifies -- specifically, if it does not return the
29number of characters transmitted -- then insert the line
30