Topic
No replies
Wieckowski
Wieckowski
1 Post
ACCEPTED ANSWER

Pinned topic gfortran under AIX 6.1

‏2012-06-26T17:04:59Z |
Hello, Let me preface that I am not a Fortran programmer.
Developer here wants to start using gfortran under AIX (Had no Fortran
prior on AIX). Anyways, simply program;

PROGRAM TESTGETPPID
CHARACTER*(20) STRING
INTEGER*4 X,Y
x=getpid()
write (*,*) x
y=getppid()
write (*,*) y
END PROGRAM TESTGETPPID

issue the compile ;

gfortran -static-libgcc -o testgetppid.exe testgetppid.for

receive;
ld: 0711-317 ERROR: Undefined symbol: .getppid_

I know getppid is defined in /usr/include/unistd.h
Question is How do I include this include?
Thanks very much in advance for your help.
Regards