Problem installing mingw version of gfortran
Brian Dessent
brian@dessent.net
Fri Sep 19 14:40:00 GMT 2008
Peter Broer wrote:
> Thanks Brian, that was really helpful. I hadn't thought of checking the
> LIBRARY_PATH variable. It appears that there is a conflict with my g95
> installation, which also uses libmingwex.a. The linker must have used
> the g95 version all along, but, apparently, there wasn't a conflict before.
Right, because the implementation of a replacement snprintf in MinGW is
relatively new. Prior to that the system snprintf was used.
> I suppose I just have to define separate environments for the two compilers.
I don't understand why you need this environment variable set at all.
The compiler is relocatable and should be able to find its libraries
relative to its installation location without any help. Maybe the
relocation code in g95 doesn't work and they need this crutch of
LIBRARY_PATH, but I would certainly try just getting rid of it entirely.
Brian
More information about the Fortran
mailing list