For Programmers: Free Programming Magazines  


Home > Archive > Fortran > November 2004 > how to link Fortran code in MS visio studio









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to link Fortran code in MS visio studio
CJ

2004-11-25, 3:57 pm

Hello, all,

I need to build Fortran code together with C code in MS Visio Studio.

Could some one tell me how to link to Fortran in MS Visio Studio?

Do I need a separate Fortran compiler from a third party, if so, which one?

Any help is appreciated greatly.

CJ
beliavsky@aol.com

2004-11-25, 3:57 pm


cyberwolf888@yahoo.com (CJ) wrote:
>Hello, all,
>
>I need to build Fortran code together with C code in MS Visio Studio.
>
>Could some one tell me how to link to Fortran in MS Visio Studio?
>
>Do I need a separate Fortran compiler from a third party, if so, which one?


Yes, and the first two choices I would consider are Compaq Visual Fortran
and its successor, Intel Visual Fortran. Some prefer CVF to IVF for this.



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
David T. Croft, Ph.D.

2004-11-26, 4:02 am


"CJ" <cyberwolf888@yahoo.com> wrote in message
news:b9032580.0411250828.439ed20d@posting.google.com...
> Hello, all,
>
> I need to build Fortran code together with C code in MS Visio Studio.


This can be done with Lahey Fortran 7 wich comes with Visual Studio. You
will also need C/C++.
>
> Could some one tell me how to link to Fortran in MS Visio Studio?


Most Fortran compilers for the PC can compile to dlls. The dlls are the same
as C/C++ dlls. here are also ways to link object files. This is more
compiler dependent but should not be difficult.

>
> Do I need a separate Fortran compiler from a third party, if so, which
> one?
>


I personally use the Lahey Computer Systems Fortran compiler with Microsoft
Visual C/C++. My codes call Fortran subroutines from C/C++ and the Fortran
calls back to the C/C++ code.

Once you decide on a Fortran compiler I'd be glad to help you with the
details.

David.T.Croft@AdsorptionProcessModeling.com


> Any help is appreciated greatly.
>
> CJ



bendel boy

2004-11-26, 4:09 pm

cyberwolf888@yahoo.com (CJ) wrote in message news:<b9032580.0411250828.439ed20d@posting.google.com>...
> Hello, all,
>
> I need to build Fortran code together with C code in MS Visio Studio.
>
> Could some one tell me how to link to Fortran in MS Visio Studio?
>
> Do I need a separate Fortran compiler from a third party, if so, which one?
>
> Any help is appreciated greatly.
>
> CJ


You will need a third-party Fortran compiler.

Visual Studio .NET - use Salford or (I believe) Lahey, which will
compile .NET assemblies. Documentation should explain how to link. The
compiler should state that it generates .NET assemblies. Any software
supplier (Polyhedron or Grey Matter being good examples) will help you
chose an appropriate compiler, once you explain what version of Visual
Studio you want. Polyhedron are the more likely to help you further if
you get stuck, while Grey Matter used to be a bit cheaper.

Visual Studio 6 - almost any Fortran compiler: Lahey, Salford, Compaq,
Intel, Absoft, NAS ... Depending upon your target language, Visual
Basic or C++, the linkage method wil ldiffer, but these should be
clearly explained - they are for Compaq and Absoft. There are also
lots of examples in FAQs and the like on the suppleir's web pages.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com