Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 5th, 2007, 6:41 AM   #1
Romchik
Newbie
 
Romchik's Avatar
 
Join Date: Jan 2007
Location: UK
Posts: 2
Rep Power: 0 Romchik is on a distinguished road
Send a message via ICQ to Romchik Send a message via MSN to Romchik
GFORTRAN compilation. Problem with IMSL use.

Hi! I need a bit of advice, please.

I wrote a code in Fortran using Microsoft Developer. Now I realised that I need to run it in Linux. I used few IMSL subroutines in it. Now I'm trying to compile the program using gfortran compiler in Linux.

The problem is - I don't know how to make the IMSL library work in Linux. Meaning gfortran doesn't recognise IMSL subroutines. I had copied the actual library file (MATHD.LIB) in the same folder and had tried to use "USE" command, but it didn't work, as .mod file was apparently expected instead of .lib one.

So, could anyone help, please? May be there are some command options for gfortran, or something?.. Or may be someone could advice where I might get IMSL for Linux?..

Last edited by Romchik; Jan 5th, 2007 at 7:00 AM.
Romchik is offline   Reply With Quote
Old Jan 5th, 2007, 7:26 AM   #2
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
A .LIB file is a specific file format containing compiled source code that (when you're using MS Developer) is recognised by the Microsoft Linker. To use IMSL under linux, you will need to obtain a version of the library that is compiled and built under linux, with your compile/linker.

To buy a version of the IMSL libraries for linux (or other operating systems), have a look here. I'm not sure offhand if they support gfortran.

Alternatively, there are some free, good quality, numerical fortran libraries out there as source code. Netlib is a good place to start looking.
grumpy is offline   Reply With Quote
Old Jan 5th, 2007, 9:55 AM   #3
Romchik
Newbie
 
Romchik's Avatar
 
Join Date: Jan 2007
Location: UK
Posts: 2
Rep Power: 0 Romchik is on a distinguished road
Send a message via ICQ to Romchik Send a message via MSN to Romchik
... any suggestions for the source of free IMSL copy?
__________________
Don't argue with an idiot: people may see no difference between you.
Romchik is offline   Reply With Quote
Old Jan 5th, 2007, 5:07 PM   #4
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
Look here
grumpy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stuck with a C problem Polaris C++ 8 Aug 19th, 2006 4:30 PM
cgi/perl script + IE problem joyceshee Perl 2 Jan 24th, 2006 12:10 PM
problem with c++ builder compilation rymas C++ 1 Jul 10th, 2005 10:40 PM
Variable array problem Hintshigen C 6 Apr 10th, 2005 3:35 PM
help with recursion problem the_new_guy_in_town Java 3 Apr 7th, 2005 4:04 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:48 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC