forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with GETENV

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Wed Dec 21, 2005 4:06 am    Post subject: Problem with GETENV Reply with quote

Hello,

I have loaded in my computer a Fortran code calling GETENV Function, using SALFORD FTN 95 for Microsoft Visual Studio.NET.
I have written the main source code but I have received from others the various procedures I have to put together in the main function. The computer successfully completes the compilation and link, but it shows the runtime exception:
29: Call to missing routine - GETENV.
Although GETENV call is included in one of the procedures:

CHARACTER*100 TAB_PATH, TAB_FILE, T
........
CALL GETENV("LG_LEGO",TAB_PATH)

I have looked both my computer and the Internet for something about this problem, but I did not find anything but a C Function called "getenv.c" (it is in MS Visual Studio Folders).
I suppose Getenv is an internal library function. Can you suggest me how can I solve this problem?
Thank you


Filippo Aiello
Back to top
JohnH



Joined: 26 Sep 2005
Posts: 13

PostPosted: Wed Dec 21, 2005 6:18 am    Post subject: Problem with GETENV Reply with quote

Filippo

The Salford run-time library has the function getenv@ which is used as follows:-

CHARACTER*100 getenv@,VALUE

VALUE=getenv@('WINDIR')

Edit your source code appropriately and I'm sure you will not have a problem

regards
John Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group