Hi,
I think this is the right board for this question! In any case, I'm able to compile a three line "Hello world" program using the GNU Fortran compiler. But if I set up the g95 compiler (under Windows, MinGW) and run the same program, I'm getting a linker error associated with libf95.a. Specifically,
Linking console executable: bin\Release\test2.exe
..\..\..\MinGW\lib\gcc-lib\i686-pc-mingw32\4.0.4\libf95.a(main.o)
.text+0x32): undefined reference to `MAIN_'
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
where "test2" consists of these three lines :
10 PROGRAM hello
20 PRINT*,'Hello world'
30 END PROGRAM hello
So I'm thinking I don't have some flag/define/option/etc. that's specific to g95 set.
My question is : does anyone use g95 under CodeBlocks and if so could you share your compiler settings and defaults?
Thanks in advance. And apologies if this is the wrong board for this question. (I searched for "g95" but perversely got no hits. Even though I've seen the word in the text of messages ...)
Matt