Re: Intel Fortran 8.1 and MS VC++ 2003

From: Lynn McGuire (NOSPAM.winsim_at_NOSPAM.winsim.com)
Date: 09/21/04


Date: Tue, 21 Sep 2004 10:56:37 -0500


> Yes and no. We have a simulation that mixes C++ and Fortran (most of the
> code is Fortran).

Me too. Our app is 10,000 lines of c code and 400,000 lines of f77 code.
We currently use Watcom C/F77 but I am having a floating point signal
problem.

> I believe that you cannot mix *.f files and *.cpp files in the same project
> with VS.NET 2003 (unlike VS 6.0). Instead, you must make a library
> containing just the C++ code and link that library into the Fortran project.
> I guess it could work the other way as well - compile all of the *.f code
> into a library and link that library into a C++ project.

I was afraid of this. Yuck.

> Of course, even after doing this, our code did not execute properly. We
> cannot determine if it is a memory leak (high possibility) or if the mixed
> language programming in VS.NET 2003 still has problems. The debugger in
> VS.NET is not proving to be very useful. At the moment, CVF 6.6C with VS
> 6.0 is still our most robust development environment.

I have both of these and I may try this instead.

Thanks,
Lynn



Relevant Pages

  • Re: Why float is called as float, not real?
    ... My guess is that "floating point" was used to distinguish the data representation from "fixed point." ... The oldest computer languages I've used, FORTRAN and ALGOL, both use "real," but as Glen noted, that wasn't the case with primeval FORTRAN. ... As Gib noted, even with a countably infinite number of bits, computers couldn't come close to representing all of the reals. ...
    (comp.lang.fortran)
  • Re: help reading fortran generated binary data...
    ... >> Helmut Giese ... That would probably have been Arjen, Tcl's FORTRAN guru:) but he ... floating point values as raw binary data, so I am only guessing here. ... read them back in using programs compiled with the same compiler - ...
    (comp.lang.tcl)
  • Re: Fortran vs. C++ : Which is best to choose now i
    ... Your perceived clash between the treatment of floating point and integer ... genericity than language committees' opposition to the ... It has taken Fortran 20 years to provide support for ieee fp error ... How long more does one have to wait for integer overflow ...
    (comp.lang.fortran)
  • Re: This calculation is just wrong / computer cant count!
    ... Being a FORTRAN programmer is clearly to your advantage. ... was also my first language) these things were carefully explained to us. ... everything mentioned so far in this thread, including guard bits. ... If your algorithm is sensitive to the inaccuracy of the LSB of floating ...
    (microsoft.public.vc.mfc)
  • Re: Looping using iterators with fractional values
    ... As an historical aside, Fortran had loops ... The Fortran standards committee is very conservative about ... with floating point variables are so error-prone -- and alternatives ...
    (comp.lang.python)