LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   issue system call from running fortran program (https://www.linuxquestions.org/questions/linux-newbie-8/issue-system-call-from-running-fortran-program-720949/)

msander 04-22-2009 11:47 AM

issue system call from running fortran program
 
Is it possible to make system call from a fortran program with Absoft 10.1 f90? When I try to compile a simple program like this :

Program test_system
implicit none
call system('mkdir junk')
end program test_system

I get the following:

/usr/local/apps64/absoft10.1/bin/f90 test.f90
/tmp/gYUaR4/test.o: In function `MAIN__':
/nfs/stak/u7/m/msander/test.f90:3: undefined reference to `system_'
collect2: ld returned 1 exit status
link failed.

Is this possible or does this flavor of fortran not support the call system?

Thanks,

msander

sundialsvcs 04-24-2009 07:49 AM

I think you'd have to look at the Absoft documentation... Different FORTRANs have different ways to make system-calls, although all of them do. It's possible that you have to link-in some certain external library to get access to system call functionality. It's difficult to predict what path the implementors may have chosen.


All times are GMT -5. The time now is 05:34 PM.