GCC Fortran Usage

Attila D Firpo Attila.Firpo@receita.fazenda.gov.br
Tue Feb 15 23:29:00 GMT 2005


Dear sirs:

I am a user of Microsoft Fortran, and I am trying to use the GCC Fortran.

I am having problems to run the compiler, probably because of linking with
libraries.

The GCC Fortran was installed in the following structure:

c:\MinGW
c:\MinGW\bin
c:\MinGW\doc
c:\MinGW\include
c:\MinGW\lib
c:\MinGW\mingw
c:\MinGW\mingw32

I have Fortran programs in the directory    c:\Testes.

How can I run the GCC Fortran from the directory  c:\Testes ?

I try

c:\MinGW\bin\gcc  -o program   program.for

but have a lot of errors:

C:\Testes>c:\MinGW\bin\gcc  -o prog01   prog01.for

C:\DOCUME~1\attila\CONFIG~1\Temp/cc0abaaa.o(.text+0x49):prog01.for:
undefined re
ference to `s_wsfe'
C:\DOCUME~1\attila\CONFIG~1\Temp/cc0abaaa.o(.text+0x5f):prog01.for:
undefined re
ference to `do_fio'
C:\DOCUME~1\attila\CONFIG~1\Temp/cc0abaaa.o(.text+0x75):prog01.for:
undefined re
ference to `do_fio'
C:\DOCUME~1\attila\CONFIG~1\Temp/cc0abaaa.o(.text+0x7d):prog01.for:
undefined re
ference to `e_wsfe'
C:\DOCUME~1\attila\CONFIG~1\Temp/cc0abaaa.o(.text+0x9c):prog01.for:
undefined re
ference to `s_stop'
c:/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3
/../../../libmingw32.a(main.o)(.text+0x
97):main.c: undefined reference to `WinMain@16'

Can you help me ?  Can you indicate a beginners User Manual ?

Yours very trully.

Attila D. Firpo

e-mail:     Attila.Firpo@receita.fazenda.gov.br




More information about the Gcc-help mailing list