Hi all, I'm attempting to recompile a mixed C++/Fortran project for a x64 platform / Debug configuration but keep running into a LNK2005 error. The Fortran code is compiled to a static library while the C++ code -- which calls the Fortran code -- is compiled to a dynamic library. The error occurs when I attempt to compile the C++ code:
I'd like to report a possible bug in Fortran Intel Compiler - it seems it doesn't read correctly data in nonadvancing way on a file opened as a formatted stream.
Please consider the attached program. It generates file with lines "This_is_line_no_XXXX" where XXXX is the number of the line. It then reads it back as stream formatted nonadvancing. With the default blocksize, the first problem exhibits at line 780 which is around 16384 bytes which could be the default blocksize, the output is as follows:
hi below is the code I rewrote(with do loops) and further down(with where statements) is the original code. The code seems to be producing differnt values for WORK arrays over time. How to resolve this issue??
This useful new feature seams only possible on explicit do loops. Why was it not thought to be useful for implicit loops, i.e array assignment ? Is it too hard to implement ?
I am just going through my program in debug mode. Currently I have the problem, that when a value is assigned to a variable, the debugger jumps into memcpy.asm. I don't want to see this!
I think there's a project property set wrong, but which one?
I am new to fortran.. I am facing difficulty in calling subroutine and module from main program. When I run the program , its gives error about line 95 d.
sometimes it gives error SALFORD RUN TIME ERROR-STACK OVER FLOW
Please check any mistake in the following code:
- Module variables_m
Why can I link my Intel Fortran dll (sum_if.dll) to my Fortran (sum_test) but not my C++ one (sum_cpp.dll)? All are accepted as STDCAL DLLs by other software e.g. Excel VBA (in the attached .zip)
Fortran Linking to sum_if works with any of:
- Linker | Input | Additional Dependecies= sum_if.lib
- Adding.lib to project (e.g. sum_if.lib)
- Project Dependencies = sum_if
But for sum_cpp the dll is not found or accepted i.e.
sum_test.obj : error LNK2019: unresolved external symbol __imp_sum referenced in function _MAIN__
I want to do something that is quite simple (I reckon). I must go up one folder level, chdir to another folder and then delete one existing file in this latter folder. What I'm doing is the following:
Logical :: I
I = SystemQQ('cd ..\Data\')
I = SystemQQ('del CPG.dat')
However, it seems that not even the first command works, I mean, I cannot go up one level and then into the Data folder. The command System (by the way, in what it differs from SystemQQ?) doesn't work either. Same result if I split the first command:
I need to read a 62x14 table which is generated by an external program. However the external program splits the table in two parts, showing the first 10 columns and the remaining columns just below the first part. Is it possible to read such table in my Fortran code? What should be done?
I have a Fortran subroutine which I want to call from C. One of the arguments is a derived type such as:
type :: pprop real*8 :: x1 real*8 :: x2 real*8 :: x3 real*8 :: x4 end type pprop
On the C side, what can I map this to? Will an array work as all the components are of the same type? Or do I have to map to a struct?