Brian Dessent wrote:
Aaron Patton wrote:
Ok I went with the former and it got rid of all the errors except the
following
$ make -f Makefile
C:/msys/1.0/mingw/bin/g++ -o cirfets CIRFTYPES.o CIRFETS.o CIRFCHANS.o
CIRFERRS.o CIRFIO.o CIRFPOST.o CIRFSUBS.o libiolib.a -lgfortran
C:/msys/1.0/mingw/lib/libmingw32.a(main.o):main.c:(.text+0x104):
undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
C:\msys\1.0\mingw\bin\make.exe: *** [cirfets] Error 1
Oops, I guess you'll also need -lgfortranbegin if your entry point is in
Fortran code.
Brian
It looks like its having trouble finding the library
I've included the path and library_path variables so you can see what
they're set to. There is a library called libgfortranbegin located at
C:\msys\1.0\mingw\lib\gcc\i586-pc-mingw32\4.4.0. Is that where I should
be pointing? If so, how do I get ld to look there instead?
Aaron
aaronrpatton@AARONRPATTON-PC /c/ers/dev_code/fortran/CIRFETS
$ echo $PATH
C:\msys\1.0\mingw\bin
aaronrpatton@AARONRPATTON-PC /c/ers/dev_code/fortran/CIRFETS
$ echo $LD_LIBRARY_PATH
C:/msys/1.0/mingw/lib
aaronrpatton@AARONRPATTON-PC /c/ers/dev_code/fortran/CIRFETS
$ echo $LIBRARY_PATH
C:\msys\1.0\mingw\lib
aaronrpatton@AARONRPATTON-PC /c/ers/dev_code/fortran/CIRFETS
$ make -f Makefile
C:/msys/1.0/mingw/bin/g++ -o cirfets CIRFTYPES.o CIRFETS.o CIRFCHANS.o
CIRFERRS.o CIRFIO.o CIRFPOST.o CIRFSUBS.o libiolib.a -lgfortranbegin
-lgfortran
C:\msys\1.0\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lgfortranbegin
collect2: ld returned 1 exit status
C:\msys\1.0\mingw\bin\make.exe: *** [cirfets] Error 1
aaronrpatton@AARONRPATTON-PC /c/ers/dev_code/fortran/CIRFETS