getenv, getarg, iargc, system etc with intel fortran compiler
From: Shaji (shaji_at_northwestern.edu)
Date: 10/24/03
- Next message: Douglas Cox: "Re: getenv, getarg, iargc, system etc with intel fortran compiler"
- Previous message: Paul van Delst: "Re: Assignments in Modules"
- Next in thread: Douglas Cox: "Re: getenv, getarg, iargc, system etc with intel fortran compiler"
- Reply: Douglas Cox: "Re: getenv, getarg, iargc, system etc with intel fortran compiler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Oct 2003 16:00:43 -0700
I need to use the getenv, getarg, and iargc functions to run my code.
My original code compiles fine (after copying iflport.f90 file to my
directly and inluding it in my modules) but while linking it says
"genenv not found"
so i made a simple program as below and tried to compile
still it does not find,
can somebody tell me why?
Please forgive me if this is an FAQ, I could not find anything after
searching he web,
-------- MY SHELL PROMPT ------------
myrtle:~/test> ls
a.F90 IFLPORT.mod main.F90 makemake* music.o
iflport.F90* iflport.o Makefile music.F90@
myrtle:~/test> ifc iflport.F90 a.F90
module IFLPORT
1638 Lines Compiled
program A
7 Lines Compiled
/home/shaji/temp/ifckjMk4d.o: In function `main':
/home/shaji/temp/ifckjMk4d.o(.text+0x20): undefined reference to
`system_'
myrtle:~/test>
---------PROGRAM a.F90 ------------------------
program check
Use iflport,Only: system
Integer :: int1
int1=system('ls')
!Call system('ls')
end program check
- Next message: Douglas Cox: "Re: getenv, getarg, iargc, system etc with intel fortran compiler"
- Previous message: Paul van Delst: "Re: Assignments in Modules"
- Next in thread: Douglas Cox: "Re: getenv, getarg, iargc, system etc with intel fortran compiler"
- Reply: Douglas Cox: "Re: getenv, getarg, iargc, system etc with intel fortran compiler"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]