Hi Arjen, it must be some misconfiguration of MSYS and your MinGW version(s), since I was able to compile and run your program but from within a Windows CLI without problems.
HTH, Werner Arjen Markus wrote: > Hello, > > it turns out that my TDM/MinGW gfortran installation is > incapable of linking even the simplest Fortran 90 programs: > > I tried to compile this program: > > ! fmain.f90 -- > ! Simple Fortran program using a DLL > ! > program fmain > integer :: x > > x = 0 > !call fvarset( x ) > write(*,*) x > end program > > (which uses no external user-defined routine as to get > minimal dependencies) > > and got the following error messages: > > c:/mingw_gcc/bin/../lib/gcc/mingw32/4.3.2/libgfortran.a(list_read.o):list_read.c:(.text+0x249d): > undefined reference to `___mingw_snprintf' > c:/mingw_gcc/bin/../lib/gcc/mingw32/4.3.2/libgfortran.a(list_read.o):list_read.c:(.text+0x261d): > undefined reference to `___mingw_snprintf' > c:/mingw_gcc/bin/../lib/gcc/mingw32/4.3.2/libgfortran.a(list_read.o):list_read.c:(.text+0x2bf1): > undefined reference to `___mingw_snprintf' > c:/mingw_gcc/bin/../lib/gcc/mingw32/4.3.2/libgfortran.a(list_read.o):list_read.c:(.text+0x2e17): > undefined reference to `___mingw_snprintf' > c:/mingw_gcc/bin/../lib/gcc/mingw32/4.3.2/libgfortran.a(write.o):write.c:(.text+0xc4b): > undefined reference to `___mingw_snprintf' > c:/mingw_gcc/bin/../lib/gcc/mingw32/4.3.2/libgfortran.a(write.o):write.c:(.text+0x121f): > more undefined references to `___mingw_snprintf' follow > collect2: ld returned 1 exit status > > So it seems to be lacking a system library! > > I can continue with trying to get the FORTRAN 77 bindings to work, > but this is not very inspiring :( > > (I had fleetingly noticed this before with CMake - it did not want to > build F90/95 bindings.) > > Maybe I should install the basic GCC compilers - not the TDM ones. > > Regards, > > Arjen > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel -- Dr. Werner Smekal Institut fuer Allgemeine Physik Technische Universitaet Wien Wiedner Hauptstr 8-10 A-1040 Wien Austria email: [EMAIL PROTECTED] web: http://www.iap.tuwien.ac.at/~smekal phone: +43-(0)1-58801-13463 (office) +43-(0)1-58801-13469 (laboratory) fax: +43-(0)1-58801-13499 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel