Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: newfisher on November 29, 2008, 03:07:22 pm

Title: A fortran file, console, lib and dll wizard for Code::Blocks
Post by: newfisher on November 29, 2008, 03:07:22 pm
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]
Title: Re: A fortran file, console, lib and dll wizard for Code::Blocks
Post by: MortenMacFly on November 29, 2008, 03:59:59 pm
So you can use Codeblocks:: for fortran application, enjoy it.
I can't download. Probably the file is too big and/or our server doesn't let me.
Title: Re: A fortran file, console, lib and dll wizard for Code::Blocks
Post by: newfisher on November 29, 2008, 04:05:07 pm

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?
Title: Re: A fortran file, console, lib and dll wizard for Code::Blocks
Post by: Jenna on November 29, 2008, 04:14:03 pm
So you can use Codeblocks:: for fortran application, enjoy it.
I can't download. Probably the file is too big and/or our server doesn't let me.

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).


Title: Re: A fortran file, console, lib and dll wizard for Code::Blocks
Post by: MortenMacFly on December 03, 2008, 02:52:31 pm
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!
Title: Re: A fortran file, console, lib and dll wizard for Code::Blocks
Post by: jrrchen on May 03, 2009, 03:27:01 pm
thx guy,your file of for_wiz.zip really help me a lot.I am very new to CB.I do all the things as the wiki tells but I just can't creat a fortran project under codeblocks and I don't know how to do with the wizard things.Luckily,i find this post.thx a lot.
Title: Re: A fortran file, console, lib and dll wizard for Code::Blocks
Post by: skunky79 on March 22, 2010, 12:54:12 pm
I cannot download any for_wiz.zip ...
can anyone help me please?