From: JonY <10...@gm...> - 2008-06-04 14:34:20
|
eduardo mazoni andrade marcal mendes wrote: > Here it is: > > g95 -g -I c:/mingw/include -I c:/dislin/mg95/real64 -c ./stattools.f90 > g95 -g -I c:/mingw/include -I c:/dislin/mg95/real64 -c ./graftools.f90 > g95 -g -I c:/mingw/include -I c:/dislin/mg95/real64 -c ./modelos.f90 > g95 -g -I c:/mingw/include -I c:/dislin/mg95/real64 -c ./previsor.f90 > g95 graftools.o stattools.o previsor.o modelos.o -o previsor.exe > c:/dislin/dismg_d.a -luser32 -lgdi32 > ld: unrecognized option '--sysroot=' > ld: use the --help option for usage information > make: ***[ previsor.exe] Error 1 > > As for gcc, I dont' know. I am an old fashion guy and most of my code is > fortran. Would you have an example in C that I can test here? > > Many thanks > > Ed > Hi, Old fashion? just how old are you? :) Since you are using "make", I am assuming that you are invoking "g95" under MSYS bash. Omit the the single quotation marks if you're using the Windows Command Prompt. echo 'main(){printf("hello world.\n");}'|gcc -xc - -include stdio.h executing a.exe should print "hello world". If it works, there is no problem with "gcc". btw, is the installed gcc from the g95 guys or from MinGW? "gcc -v" may give clues. |