Author Topic: A fortran file, console, lib and dll wizard for Code::Blocks  (Read 21995 times)

newfisher

  • Guest
A fortran file, console, lib and dll wizard for Code::Blocks
« 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]
« Last Edit: November 30, 2008, 03:04:58 am by newfisher »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: A fortran file, console, lib and dll wizard for Code::Blocks
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

newfisher

  • Guest
Re: A fortran file, console, lib and dll wizard for Code::Blocks
« Reply #2 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: A fortran file, console, lib and dll wizard for Code::Blocks
« Reply #3 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).



Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: A fortran file, console, lib and dll wizard for Code::Blocks
« Reply #4 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!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

jrrchen

  • Guest
Re: A fortran file, console, lib and dll wizard for Code::Blocks
« Reply #5 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.

Offline skunky79

  • Single posting newcomer
  • *
  • Posts: 2
Re: A fortran file, console, lib and dll wizard for Code::Blocks
« Reply #6 on: March 22, 2010, 12:54:12 pm »
I cannot download any for_wiz.zip ...
can anyone help me please?