Author Topic: CodeBlocks with Fortran support  (Read 8077 times)

Offline htg20

  • Single posting newcomer
  • *
  • Posts: 4
CodeBlocks with Fortran support
« on: January 24, 2011, 02:54:05 pm »
Hello Everyone,

I am developing a mixed language code (Fortran, C/C++ ) and I found that another project is developing a plugin with Fortran support. I saw somewhere that the developers of CB plan to include the Fortran plugin into CB but there was no date set. I found the CB:: Fortran plugin actually supports many features of F2003 and obviously it would be nice to have everything in one package. What is the plan or possible dates to do this?
Actually, the CB with Fortran support will help a lot of Fortran developers because lack of a descent IDE for Fortran, though I understand that CB was mainly built for C++. But again, mixed language programming is very common these days.

Thanks a lot  :).

Cheers
Hossein

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks with Fortran support
« Reply #1 on: January 24, 2011, 03:01:06 pm »
What is the plan or possible dates to do this?
I am doing such cross development myself and I guess (am I'm afraid) I am the only Fortran dev in the C::B team. I've monitored this Fortran extension for quite some time. Hence as of now I am not sure what the current state is. For example: The CC plugin got a big overhaul in the C::B from trunk - what about the Fortran fork? I don't know. Also, the Fortran fork was from a quite old SVN revision lately (this might have changed in the meantime) which would make it more difficult to merge.

So: We need some discussion with the author of the Fortran fork as I believe he can tell best whether its possible to merge the extension back into the original C::B or not. I' personally still support such step, hence I am not the only one to decide. Just ask the author to talk back in this forum so we can discuss on that topic, please.
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

Offline cacb

  • Lives here!
  • ****
  • Posts: 536
Re: CodeBlocks with Fortran support
« Reply #2 on: January 24, 2011, 10:29:24 pm »
But again, mixed language programming is very common these days.

C++/Fortran mixed language programming has been common for many years, so I wrote http://arnholm.org/software/cppf77/cppf77.htm years ago.

Having this option in C::B would of course be very nice.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeBlocks with Fortran support
« Reply #3 on: January 25, 2011, 06:27:42 am »
Having this option in C::B would of course be very nice.
You do have this option for a long time in C::B. C::C can handle such projects just fine if they are setup correctly. The patch discussed here bring some more Fortran compiler support into C::B and tries to implement a Fortran specific project handling including CC for Fortran.

Meanwhile I had a look at the sources:
The changes in the core are the addition of several Fortran related compilers and some tiny bug-fixes (interesting btw...). The only incompatibility I see is the change of the abbreviations (which is hard-coded) to fulfill Fortran.

Concerning the plugin: I havened tried so far, I still need to compile this first to have a look.

But from my point of view: Bringing this Fortran compiler support into the core would be possible/feasible. What remains is the plugin. If it does not interfere with other plugins all should be fine. There is even SVN access to the sources. So actually if the author would like to keep this pluign in his own repo that would be just fine.
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