The following code produces a floating point invalid error at run-time when using the flags -O2 -fpe0 -fltconsistency:
Found this surprisely hard to get an answer for. I already have MS Visual studio for C/C++/C# programming. I recently purchased Intel fortran and it installed happily into this environment. I have a tiny piece of C that I use with the Fortran to provide SEH. Adding it the project didnt get it compiled. Do I have purchase Intel C/C++ to be able to combine fortran and C together or is there a way to use an object file from the MS compiler instead?
I am having a problem while I am trying to run my program as debug.
I am facing the following error: error #8127: A null argument is not permitted when calling a Fortran routine which has an explicit interface defined.
I am not sure what is happening because in the release mode every thing work properly.
Thank you all in advance!
I have a UEL for truss element (T3D2). I'm calling and reading some .dat files inside of the UEL. I'm just reading these files inside of the UEL without doing anything to them or with them (It's just a test case). Here is an example:
OPEN(101, file="C:\Users\ak1070\Desktop\UMAT-UEL-UELMAT\UEL TEST\V1.dat", status='old',form='formatted',&
VS2008 indicates all compilation errors occur at the last line of one source file in my project. I have tried restarting devenv with different switches (/resetsettings, ...) but it does not resolve the issue. The issue occurs if I compile that specific file as well as building the entire solution and cleaning the solution does not help. Copying the source to a new file and replacing that file in the project does not resolve the issue. The issue does not occur for other source files.
What is the proper calling convention for a C routine to call a Fortran subroutine containing a character variable in the call list.
Example C code:
Example Fortran code:
!DEC$ ATTRIBUTES DECORATE, ALIAS:'fsubr' :: FSUBR
Using the default calling convention for the Fortran code and __cdecl for the C code I end up with STRNG having an undefined address when I step into the Fortran routine.
I am consolidating parameter duplication in our code and have defined a parameter SDENW now in one module only, say module A. However this variable exists in module B too (not just as a parameter definition, which I have removed, but also on the right hand side of other parameter definitions).
To prevent duplication, I tried to let Module B USE module A. However the link fails as the compiler compiles file B.F90 before A.F90 and therefore cannot find A.MOD. Of course I could just link twice, but I don't want to do that. Is there a better way to do this?
I am trying out the derived type i/o available since version 14 of the compiler and running into problems when reading from an internal file. With the following code:
I have a question about the compilation of static libraries. I tried to compile my own static libraries on the graphic interface but I don't know how !
Could you help me, please?
Thanks a lot.