Re: Building Unix based library in windows
- From: "deltaseq0" <deltaseq0@xxxxxxxxxx>
- Date: Thu, 8 Nov 2007 13:28:52 -0500
"Richard Maine" <nospam@xxxxxxxxxxxxx> wrote in message
news:1i7936y.y6py6q1767t35N%nospam@xxxxxxxxxxxxxxxx
<vijay.varanasi@xxxxxxxxx> wrote:
I had a fortran compiler. Visual Fortran on Windows XP.
I have the source code with me. It has certain make files which were
built on the Unix m/c.
Ok. That should be adequate.
Can you tell me in detail how to use that?
Not in detail, no. Depending on many things, it could be anywhere from
simple to very complicated. I don't recall whether Visual Fortran comes
with a make utility or not. In any case, it is very unlikely that you
can use a Unix Makefile directly. You'd have to look at the Makefile,
understand what it is doing, and translate that into the equivalent,
either in a Makefile, the manual command-line equivalent, or a Visual
Fortran project. I can't tell you how to do that in any detail without
writing a book on Makefiles. There is no magic cookbook formula that I
know of.
Perhaps the closest to a cookbook approach might be to ignore the
Makefile, load all the source files into a Visual Fortran project and
see if VF can sort it out by itself. There are at least reasonable odds
of that. I've never used the VF GUI at all, so I can't tell you in
detail how to do that.
The Fortran code might be ok as is or might require modifications,
depending on how much attention was paid to portability in the original
code. Probably the simplest thing to do is to first try the code as is
and see what, if anything, the compiler complains about.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
Richard's approach seems most direct.
I don't know anything about Visual Fortran but if you still can't get there
from here, you might try converting the makefile into a *.bat file script
and running that in a Command Prompt window ( assuming your windows compiler
can be run from the command prompt). Also, although I haven't used it, MS
Visual Studio has its own version of Makefile; the point being that Visual
Fortran might also in which case you might be able to convert your Unix
makefiles. Mike
.
- References:
- Building Unix based library in windows
- From: vijay . varanasi
- Re: Building Unix based library in windows
- From: Richard Maine
- Re: Building Unix based library in windows
- From: vijay . varanasi
- Re: Building Unix based library in windows
- From: Richard Maine
- Building Unix based library in windows
- Prev by Date: Re: dynamic allocation doubt
- Next by Date: Re: Building Unix based library in windows
- Previous by thread: Re: Building Unix based library in windows
- Next by thread: Re: Building Unix based library in windows
- Index(es):
Relevant Pages
|