Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
diana:windows:building:issues [2009-11-12 18:59:47] dages |
diana:windows:building:issues [2022-05-31 09:29:31] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Unresolved issues ====== | ====== Unresolved issues ====== | ||
- | ===== LDFLAGS ===== | + | **OUT OF DATE** most of these issues have been resolved or worked around, or were only relevant in the initial, experimental phase. |
- | In order to generate DLLs, libtool needs '' | + | ===== --prefix ===== |
- | - understand | + | You'll notice that I recommend installing several components (HDF, NetCDF, Grib...) in their own directories under '' |
- | - figure out where to handle it | + | |
- | ===== Incorrect library names ===== | + | **XXX is this really an issue? |
- | Now that's strange: | + | ===== Shared libraries ===== |
- | libtool: link: g++ -o .libs/ | + | Windows doesn' |
- | g++.exe: C:/ | + | |
- | This is a well-known issue, see for instance http:// | + | |
+ | - manually load all the required libraries when you aren't using libtool | ||
- | The simplest fix is to clear '' | + | ===== Compiler crash ===== |
- | $ find /mingw/lib -name ' | + | Oops: |
- | The problem is that the same will happen | + | $ gcc -o hello hello.c |
+ | This application has requested the Runtime to terminate it in an unusual way. | ||
+ | Please contact the application' | ||
+ | |||
+ | This rather cryptic message means that "this application" | ||
+ | |||
+ | Check your '' | ||
+ | |||
+ | Add the following three lines to your '' | ||
+ | |||
+ | export TMPDIR=/ | ||
+ | export TEMP=/tmp | ||
+ | export TMP=/tmp | ||
+ | |||
+ | and paste them into all your open terminals so they will take effect immediately. | ||
+ | |||
+ | There is a looong thread about this issue at http:// | ||
+ | |||
+ | ===== Fortran preprocessing ===== | ||
+ | |||
+ | You may come across something like this: | ||
+ | |||
+ | | ||
+ | g77 -g -O2 -pipe -DG77 -c -o termchar.o termchar.f | ||
+ | termchar.f: In subroutine `termchar': | ||
+ | In file included from termchar.f: | ||
+ | termchar.f: | ||
+ | termchar.f: | ||
+ | termchar.f: | ||
+ | make: *** [termchar.o] Error 1 | ||
+ | |||
+ | It means g77 does not pass '' | ||
+ | |||
+ | $ touch foo.f | ||
+ | $ mv foo.f foo.F | ||
+ | mv: `foo.f' | ||
+ | |||
+ | You can work around this by renaming the file in two stages: | ||
+ | |||
+ | $ mv foo.f foo.f- | ||
+ | $ mv foo.f- foo.F | ||
+ | |||
+ | ===== LDFLAGS ===== | ||
+ | |||
+ | In order to generate DLLs, libtool needs '' | ||
+ | |||
+ | - understand //why// | ||
+ | - figure out where to handle it | ||
===== Fortran ===== | ===== Fortran ===== | ||
+ | |||
+ | **not an issue with 3.4.5** | ||
/bin/sh ../libtool --tag=F77 | /bin/sh ../libtool --tag=F77 |