Yes,
hier an example how to start gefortran using wine, dislin and openmp library to create a real windows exe:
gfortran -o test.exe test.f95 c:\Dislin\disgf.a -luser32 -lgdi32 -fopenmp
Thanks, I will think about Cygwin when I failed with MinGW.
I just looked on the internet and maybe it answers my other MinGW question. So after installing MinGW, I have to type in the Linux console:
i586-pc-mingw32-gcc -lgfortranbegin -lgfortran -o myprog.exe myprog.f
Hope it's a right...
Hey Mikrom,
thanks very much for your effort. But unfortunately I am now a little bit confused with your second answer.
Did you mean, when I installed MinGW, I only have to type:
gcc -lgfortranbegin -lgfortran myprog.f
instead of:
i586-pc-mingw32-gcc -o myprog.exe myprog.c ???
I also...
Thanks for your answer xwb. I know about this.
But my hope was, that I can also compile *.exe files for windows using some flags.
If you're right I have to use a second pc with windows and a fortran compiler on it and compile it again?! What a pity
Hello,
I want to create .exe files using gefortran under Linux. But when I type:
gfortran -o test.exe test.f95
in the console I can't open test.exe" on Windows.
To open all *.out files on Linux is no problem.
- Are there any flags I must set to create *.exe files?
- Or is it only possible to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.