
The ECN No Name Newsletter is no longer being published. This is an archived issue.
[previous article]On the SUN machines under SunOS 4.1.1 the "cc" command that is used to link a C main program which calls FORTRAN routines has changed. The changes are due to the facts that the -lI77 and -lU77 libraries have been merged into -lF77 and that the -lF77 and -lm libraries used by FORTRAN are now located in /usr/lang/SC1.0.
So what does this mean to you? It means that you need to make the following changes to your "cc" command:
Remove the "-lI77" and "-lU77" arguments
Add a "-L/usr/lang/SC1.0" before the "-lF77" argument
If you are using one of the floating point options listed below, then you need to add the corresponding library specification before the "-L/usr/lang/SC1.0":
Floating Point Option Library Specification -f68881 -L/usr/lang/SC1.0/f68881 -ffpa -L/usr/lang/SC1.0/ffpa -fpaplus -L/usr/lang/SC1.0/ffpaplus -fsoft -L/usr/lang/SC1.0/fsoft -fswitch -L/usr/lang/SC1.0/fswitch
For example, if you used to use one of the commands:
cc main.c fortran.o -lF77 -lI77 -lU77 -lm cc -fswitch main.c fortran.o -limsl -lF77 -lI77 -lU77 -lm
now under SunOS 4.1.1 you would use the corresponding command:
cc main.c fortran.o -L/usr/lang/SC1.0 -lF77 -lm cc -fswitch main.c fortran.o -limsl -L/usr/lang/SC1.0/fswitch -L/usr/lang/SC1.0 -lF77 -lm