LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2009, 12:47 PM   #1
msander
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 04-24-2009, 08:49 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,481

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
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.
 
  


Reply

Tags
call, fortran, system


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to a detect process is running in system call or not? nisarg Linux - Kernel 3 03-18-2009 07:19 PM
HELP:Error running program which includes system call stefio Programming 2 07-27-2008 11:37 AM
How to issue system call from running fortran program swerdna Programming 3 12-27-2006 08:44 AM
how to call C function in FORTRAN program bigapple Programming 5 08-24-2005 01:30 AM
Running a Fortran program after make on Red Hat 9 evo Linux - Software 3 06-30-2003 02:04 AM


All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration