File Reading Dos/Unix

Andrew Stone astone@brightlane.com
Tue Jun 11 14:27:00 GMT 2002


Hello all,
I have some files that were generated from
FORTRAN (compiled with Salford ftn77 on a DOS system).
I'm trying to read these files using a subset of that
same FORTRAN code but now I am running under UNIX and
compiling the code as follows:

  g77 -fPIC -c -ff77 $source_f -o $object_f
  gcc -fPIC -shared -mimpure-text -o
libjniSource.so -I/usr/java/include -I/usr/java/include/solaris
jniSource.cpp objects/*.o -lg2c -lm

I'm not able to read the files under UNIX ...this
doesn't make much sense to me at the moment, but that's
not too surprising.  Is there another compiler/linker
command that I need to make this work.

I have had success with text files in the same location
with the same permissions.

thanks for your help,
andy



More information about the Gcc-help mailing list