PDA

View Full Version : Buffer Over-Run Detected During Compilation


joeslide
12-21-2004, 03:49 PM
My Setup:
Fortran 90 with mixed with C.
Using MSVC 7.0 WIN32 project setups for both languages.
Using ml_external keyword for mix language calls.
Using "/FORCE:MULTIPLE netcdfs.lib exodusIIc.lib -ml MSVC -staticlink nemesisII.lib" in the linker command line textbox.
The fortran code is part of the test suite to verify the functionality of the nemesisII library which has dependencies on netcdfs and exodusIIc libraries.

How do I trouble shoot this?

Thanks,

joeslide

Lahey Support
12-21-2004, 06:53 PM
Buffer over-run may be due to an incompatibility between the compiler and the operating system or the version of MSVC. Test compile source with the trial version of our current release.

joeslide
12-21-2004, 08:39 PM
Buffer over-run may be due to an incompatibility between the compiler and the operating system or the version of MSVC. Test compile source with the trial version of our current release.

Hmmmm. Maybe not. I was in Visual Studio when the error occurs. When to command line mode with:

lf95 ne_test.f -G /FORCE:MULTIPLE exodusIIc.lib nemesisII.lib netcdfs.lib -ml MSVC -staticlink "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\lib\libcmt.lib"

and it compiled/linked.

Lahey Support
12-22-2004, 07:15 PM
Our Fortran 90 products have never been tested with Visual Studio. There may be a compatibility problem between LF90 and Visual Studio, or Visual Studio and your operating system. Then again the project configuration may be at fault. Not much here to go on.

Can you compile anything from Visual Studio? Are you using the Fortran 90 compiler on a supported operating system? Is Visual Studio 7 compatible with you operating system? What is the exact error message? Is it produced only with a mixed language project?...