gfortran 8.2: compiling and linking dylib for excel 2011 VBA under OSX Mojave
J T Nelson
nelsonjt@earthlink.net
Fri Feb 22 04:46:00 GMT 2019
> On Feb 21, 2019, at 4:33 AM, Janne Blomqvist <blomqvist.janne@gmail.com> wrote:
>
> On Thu, Feb 21, 2019 at 8:07 AM J T Nelson <nelsonjt@earthlink.net> wrote:
>> i attempted compiling and linking with or without the -mx32 switch during linking and/or compiling, and the linker produces a library.
>
> I don't know what the solution to your problem is, except to note that
> -mx32 is extremely unlikely to be the solution. X32 is a
> Linux-specific ABI for using 32-bit pointers in x86-64 long mode. See
> https://en.wikipedia.org/wiki/X32_ABI .
>
> --
> Janne Blomqvist
-mx32 seems to do something similar to -m32, as indicated in the manuals.
-mx32 is an option in GCC, not in gfortran, judging from the manual.
Interestingly, compiling with -m32 produces an error when linking the objects with gfortran 8.2, which identifies the object as compiled for i386.
Evidently, i386 code is compiled with gfortran 8.2. I just can’t link it with apple’s linker.
Evidently, -mx32 has no significance during compilation with gfortran 8.2
I had no luck using the -mx32 switch during linking, regardless.
The link to wikipedia is very interesting.
Thanks.
Jim
More information about the Fortran
mailing list