gfortran + cygwin: shared librairies?
Jerry DeLisle
jvdelisle@verizon.net
Tue Jul 3 05:57:00 GMT 2007
FX Coudert wrote:
> [I'm forwarding this request that I received by private mail to the
> fortran list]
>
> Hello,
>
> You always get more replies when you post to the list, instead of
> mailing people privately, especially when you're not asking the right
> guy :) Therefore, I copy the list so that the people who can give you
> more help than I currently can.
>
> Thanks for the report anyway!
> FX
>
>
>> Hello,
>>
>> I am currently ensuring the cygwin support of the software I am
>> working on, but I have a trouble with gfortran. I attach all this as a
>> small example:
>> - open.f provides a routine which opens the file foo.txt and
>> associates it to a logical unit. The library libopen.dll is created
>> from the single file open.o.
>> - read.f provides a routine which reads the first line of file
>> foo.txt, by reading the logical unit opened by the above 'opening'
>> routine. The library libread.dll is created from the single file read.o.
>> - The main program test opens and reads the file. It is linked against
>> these 2 dlls. And actually, it does not work and returns and EOF
>> signal at the first read call.
>> There is no problem if the open and read statements are called from
>> the same dll.
>>
>> From our side, we suspect that it is a shared/static librairies
>> trouble. The gfortran binaries distributed for cygwin only provide the
>> static librairies:
>>
>> dhcp-bardeau READ/2-libs> gfortran -v
>> Using built-in specs.
>> Target: i686-pc-cygwin
>> Configured with: ../gcc43/configure --prefix=/usr/local/gfortran
>> --enable-languages=c,fortran --enable-bootstrap --enable-threads=posix
>> --enable-sjlj-exceptions --enable-version-specific-runtime-libs
>> --enable-nls --disable-libmudflap --disable-shared
>> --disable-win32-registry --with-system-zlib --enable-checking=release
>> --enable-werror --without-included-gettext --without-x --enable-libgomp
>> Thread model: posix
>> gcc version 4.3.0 20070512 (experimental)
>>
>> It seems that you are in charge to provide the cygwin binaries, and my
>> request does not concern a bug, so that's why I email you. Is it
>> possible that you activate the shared librairies creation
>> (--enable-shared) ? I tried to recompile myself the gfortran
>> executable and libraires, but I have other troubles in the gcc make
>> processes...
>>
>> Thanks for your help,
I have been doing the cygwin builds downloaded at the wiki. I will have a look
at this if I get a chance. I will be out of town for a few days. I will try.
Jerry
More information about the Fortran
mailing list