Closed svigerske closed 5 years ago
Comment by @svigerske created at 2008-03-13 17:33:00
Sorry, my mistake. I made clean checkouts and rebuilds and now everything seem to work fine. compile_f2c seem to use appropriate flags automatically.
Comment by @andrea5w created at 2008-03-13 18:22:29
Resolution: worksforme
Issue created by migration from Trac.
Original creator: @svigerske
Original creation time: 2008-02-15 12:01:48
Assignee: @andrea5w
Version: 0.5
Hi,
when I do an optimized build with cl then the compiler flags for cl are set to include -MT, thus the objects want to be linked against LIBCMT.lib.
When I also use compile_f2c to build the fortran code, then this script also calls cl, but without setting extra flags, thus the objects from fortran code want to be linked against LIBC.lib.
Hopefully this will just result in warnings, but it's also a potential cause for problems. A workaround is to specify FFLAGS="-MT" on the command line, but maybe it is possible to improve the build system in the way that it does something like FFLAGS=$CFLAGS in case F77=compile_f2c?
Best, Stefan