[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49548] mkoctfile can not build FORTRAN
From: |
Dimitar |
Subject: |
[Octave-bug-tracker] [bug #49548] mkoctfile can not build FORTRAN |
Date: |
Tue, 8 Nov 2016 16:12:34 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 |
Follow-up Comment #3, bug #49548 (project octave):
Dear Mr Miller,
I thank you for the useful comment.
After applying of the correct command line mkoctfile works properly under
Windows 8.1.
Below you can find the output of Octave GUI:
>> mkoctfile -v fortrandemo.cc fortransub.f -lgfortran
gfortran -c -O -mieee-fp fortransub.f -o fortransub.o
g++ -c -I/scratch/jwe/mxe-octave/usr/i686-w64-mingw32/include
-IC:\Octave\Octave-4.0.3
\include\octave-4.0.3\octave\..
-IC:\Octave\Octave-4.0.3\include\octave-4.0.3\octave -I
C:\Octave\Octave-4.0.3\include -pthread -mieee-fp -g -O2 fortrandemo.cc -o
fortrandemo.o
g++ -IC:\Octave\Octave-4.0.3\include\octave-4.0.3\octave\..
-IC:\Octave\Octave-4.0.3\in
clude\octave-4.0.3\octave -IC:\Octave\Octave-4.0.3\include -pthread -mieee-fp
-g -O2 -shared -Wl,--export-all-symbols -Wl,--enable-auto-import
-Wl,--enable-runtime-pseudo-reloc -o fortrandemo.oct fortransub.o
fortrandemo.o -lgfortran -LC:\Octave\Octave-4.0.3\lib\octave\4.0.3
-LC:\Octave\Octave-4.0.3\lib -loctinterp -loctave
-Wl,-rpath-link,/scratch/jwe/mxe-octave/usr/i686-w64-mingw32/lib
-L/scratch/jwe/mxe-octave/usr/i686-w64-mingw32/lib -Wl,--export-all-symbols
>> fortrandemo(1:3)
ans =
1.00000 0.50000 0.33333
>> [b, s] = fortrandemo (1:3)
b =
1.00000 0.50000 0.33333
s = There are 3 values IN the input vector
Yours sincerely
Dimitar
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49548>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/