First  |  Prev |  Next  |  Last
Pages: 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
Problems matching between FORTRAN COMMON and C struct defined in a ?dll
Pedro567 <pce(a)ecosimpro.com> wrote: We are having a problem to match properly a C struct exported as dll using GNU g++ 4.4.0 with a COMMON block in Fortran using GNU gfortran 4.4.0. Tt works properly in Linux version, but not with Mingw. Probably we are missing something in this platform. Any hel... 31 Mar 2010 05:26
C_LOC and character string
I think this is a standard complaint code and about as simple as it gets, but the xlf2003 compiler gives the error: "test.f90", line 19.15: 1516-169 (S) A variable that is specified as an argument to the intrinsic procedure C_LOC must either have type and type parameters that are interoperable with a C type, or ... 2 Apr 2010 11:29
Problems matching between FORTRAN COMMON and C struct defined in a dll
We are having a problem to match properly a C struct exported as dll using GNU g++ 4.4.0 with a COMMON block in Fortran using GNU gfortran 4.4.0. Tt works properly in Linux version, but not with Mingw. Probably we are missing something in this platform. Any help will be welcomme. Code in C++ (compiled as a d... 5 Apr 2010 03:57
Correct way to write a wrapper for C functions that accept/return strings
Phred Phungus <Phred(a)example.invalid> wrote: Dr Malcolm McLean wrote: On 9 Mar, 15:53, Eli Osherovich <eli.osherov...(a)gmail.com> wrote: May be I do not understand you correctly... but my impression is you are talking about C not Fortran.- Hide quoted text - I got the wrong end of the st... 30 Mar 2010 00:42
Output units nowadays
This is purely a theoretical issue for me, not a practical one, but I'm interested in it, for curiosity's sake. Imagine a modern workplace ... pc, win/linux (whatever fits you the most), modern printer and so on. Nowadays, when we use output units we usually mean either output to file (number), or to screen (us... 31 Mar 2010 05:26
Can command characters actions be disabled in modern compilers ?
Simple question really; is there an option which disables command characters actions (1,0,+ or blank in column 1) in either Intel's or gfortran's line of compilers ? If I understood correctly, they're deleted out of f2003 (or have I misread ?). pp, Luka ... 31 Mar 2010 08:43
Fortran 95 equivalent of read(..., POS=...)
I am trying to compile a fortran 2003 code using a fortran 95 compiler. The only '03 feature the code has is this ONE line: read(f, pos = <foo>) <var> One line. I'm trying to avoid having to install an 03 compiler (and other intermediary wrappers etc) just for this. The last time I used fortran it was on 77, ... 30 Mar 2010 14:58
Calling DLL subroutine from C++
I am able to invoke a subroutine in my DLL successfully, and all seems OK until the execution is complete. On return from the DLL subroutine my C++/Qt application crashes silently. My subroutine expects an integer and four character arrays: subroutine execute(ncpu,infile,outfile,resfile,runfile) !DEC$ ATTRI... 29 Mar 2010 19:12
Does PAUSE have any Side Effect ??
Hello; 1) The program works fine and as desired with the following PAUSE statement in: ........Pause 'In Sub dCpZeros() 103' Remove or comment out the PAUSE statement, and the program returns NaN. Does this make any sense to anyone ?? 2) Apart from temporarily suspending the program execution, DOES Pause do... 3 Apr 2010 07:09
Problem with Matmul
I keep getting this error when I run my file: In file lab12A.f95:56 RESULT = MATMUL(array, array2) 1 Error: Incompatible ranks 0 and 2 in assignment at (1). There is what the statement looks like in my file: DO irows = 1, ROWS RESULT = MATMUL(array, array2) WRITE(*,*)irows, RESULT END DO How d... 27 Mar 2010 11:57
First  |  Prev |  Next  |  Last
Pages: 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47