use just one routine?

Post here if you have a question about the installation process

use just one routine?

Postby Andrea » Tue Sep 06, 2011 2:32 pm

Hello everyone,
I´m new in this, so excuse if my question is so basic :(
It is possible to compile just one routine to call from another fortram program? (obviously with the associatted subroutines). Specifically I want to use the sgbsv one to solve a pentadiagonal matrix.
I´m on windows xp and using Compaq Visual fortran to compile. I tried to compile but I obtained this error message:

dfor.lib(DFORMAIN.OBJ) : error LNK2001: unresolved external symbol _MAIN__
Debug/sgbsv.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

It seems that I need a library, could be?

Many thanks in advance to anyone that can help me!!!
Posts: 2
Joined: Tue Sep 06, 2011 1:56 pm

Re: use just one routine?

Postby admin » Tue Sep 20, 2011 4:54 pm

If you want to use sgbsv, you will need this routine plus all its LAPACK dependencies.
They can be downloaded here: ... le/sgbsv.f
LAPACK needs the BLAS, so you will have also to link with the BLAS.

Regarding your error, yes it seems you are missing a main program.
Best would be maybe to try to use Cygwin that is a Unix-like environment under Windows and use gfortran as Fortran Compiler.
Good luck!
Site Admin
Posts: 612
Joined: Wed Dec 08, 2004 7:07 pm

Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests