Prev: Libraries on Linux
Next: Write to file from DLL
From: ben_nielsen20 on 23 Apr 2007 16:51 > > > C:\gfortran\bin>gfortran 3omega.f > > gfortran: CreateProcess: No such file or directory > > This looks like an installation problem of some sort. The "gfortran" > program calls a number of other programs to do the actual compilation, > assembly, and linking. The error for the Unicode file indicates that > the compilation part is running correctly, but perhaps the assembler or > linker hasn't been installed. > > At a rough guess, perhaps there's a MinGW "binutils" package that > GFortran depends on, which you haven't installed? > > If you try compiling a basic "Hello, World" program, do you get the same > error? The problem is with my compiler- it won't even run a simple program...guess I should have checked this before. I'll try to download another one and see what happens.
From: Beliavsky on 23 Apr 2007 17:34 On Apr 23, 4:51 pm, ben_nielse...(a)yahoo.com wrote: > > The problem is with my compiler- it won't even run a simple > program...guess I should have checked this before. I'll try to > download another one and see what happens. I suggest trying Mingw g95 . If you install it and cannot compile Hello World even after perusing the readme.txt file found in the installation, please post to g95 newsgroup http://groups.google.com/group/gg95 .. Based on earlier comments, you need a text editor that is good for Fortran code (indents blocks and colors keywords, for example). XEmacs and Emacs have Fortran 90 (free source form) modes. You can Google this newsgroup or the web for other recommendations of text editors. Once you're in business you have lots of fun with the OTPL :).
From: ben_nielsen20 on 23 Apr 2007 17:41 > This is an unexpected error. Can you indicate which gfortran version you > have (output of "gfortran -v") and what is the setting of your PATH > environment variable (quoting from memory, this should be given by "set > PATH")? > > That bug has been reported and I thought I had it fixed in recent > binaries ("recent" meaning "less than two weeks old"). > > -- > FX C:\gfortran\bin>gfortran -v Using built-in specs. Target: i386-pc-mingw32 Configured with: ../trunk/configure --prefix=/mingw --enable- languages=c,fortran --with-gmp=/home/coudert/local --disable-nls --with-ld=/mingw/bin/ld --with-as= /mingw/bin/as --disable-werror --enable-bootstrap --enable-threads -- build=i386- pc-mingw32 --disable-shared --enable-libgomp Thread model: win32 gcc version 4.3.0 20070416 (experimental)
From: ben_nielsen20 on 23 Apr 2007 19:08 > I suggest trying Mingw g95 . I was able to compile with G95.
From: FX on 24 Apr 2007 01:43
>> and what is the setting of your PATH environment variable (quoting >> from memory, this should be given by "set PATH")? > > C:\gfortran\bin>gfortran -v OK, I understand. Is C:\gfortran\bin in your PATH? Does it work better if you run it from another directory? -- FX |