Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
A fortran file, console, lib and dll wizard for Code::Blocks
newfisher:
Hello everybody. G95 and Gfortran are very good compliers for fortran language. But They have not IDE. Codeblocks:: is a excellent IDE, and it is not only for C/C++ language. It can be used by fortran too.
First, You can set fortran complier in codeblocks:: as follow (The setting of G95 is very similar to Gfortran):
http://wiki.codeblocks.org/index.php?title=Installing_Fortran_Compiler
Then, you can download and unzip the zip file "for_wiz" and copy all files in it to CodeBlocks\share\CodeBlocks\templates\wizard. The config.script will be replaced, you should backup it before copying.
So you can use Codeblocks:: for fortran application, enjoy it.
[attachment deleted by admin]
MortenMacFly:
--- Quote from: newfisher on November 29, 2008, 03:07:22 pm ---So you can use Codeblocks:: for fortran application, enjoy it.
--- End quote ---
I can't download. Probably the file is too big and/or our server doesn't let me.
newfisher:
I can't download. Probably the file is too big and/or our server doesn't let me.
[/quote]
This file is only 92kb. I have download it justnow. You can try it again?
Jenna:
--- Quote from: MortenMacFly on November 29, 2008, 03:59:59 pm ---
--- Quote from: newfisher on November 29, 2008, 03:07:22 pm ---So you can use Codeblocks:: for fortran application, enjoy it.
--- End quote ---
I can't download. Probably the file is too big and/or our server doesn't let me.
--- End quote ---
No download-problems for me.
I can upload it to my server, or have a look on the files myself (even if I did not use fortran for about 15 years now).
MortenMacFly:
OK - I tested and tweaked the wizards quite a bit. Most important: You were missing to link against "gfortran" and "gfortranbegin" (for applications). Otherwise the project setup would result in a project that does not compile using the default compiler/options.
It would be most cool if the user can select between GFortran (F95) and "plain" Fortran (F77). As for example: I still (have to) use Fortran77. This wizard does unfortunately not work with the Fortran (F77) compiler provided with the GCC3 stream line. So you need GCC4 for this to work. Providing a user a choice would be most convenient. If you want to you could give this a try... it shouldn't be too hard.
Besides this everything looks good so far. I'll continue to test a little and probably submit to SVN. Thanks for the contribution!
Navigation
[0] Message Index
[#] Next page
Go to full version