Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Scripted Wizard - Fortran

(1/2) > >>

atronoush:
When a new Fortran application (or dll or lib) is created in Code::Blocks a template is  used.
Based on your CB installation they are in (C:\gfortran\cb17.12\share\CodeBlocks\templates\wizard\fortran)
here C:\gfortran\cb17.12 is the installation folder.

 1. The file type is .f95 and it is better to be changed to .f90
      this is a de facto standard to use .f90 for modern fortran instead of .f95, .f03, f2k, .f08, f18, ...
 2. The content of file is not suitable and the following is recommended


program main
!
! Local variable
    implicit none
   
! Main body
   print*, 'Hello World...'
end program main



3. Other files can be modified as above
for dll and lib project the following can be used

! This is a Fortran Dynamic Link Library (dll) project
subroutine sub()
  implicit none
 
  print*, "This is subroutine"
end subroutine sub



and


! This is a Fortran Static Library (lib) project
subroutine sub()
  implicit none
 
  print*, "This is subroutine"
end subroutine sub



oBFusCATed:
If you want this to be added to svn you need to provide an appliable patch...

See here for details: http://wiki.codeblocks.org/index.php/Creating_a_patch_to_submit_(Patch_Tracker)

atronoush:
Thank you! I will ask Darius the Fortran Plugin developer to do this.

Cheers

oBFusCATed:
Why? You've already done half the work...  ???

atronoush:
I couldn't find anything here
 http://wiki.codeblocks.org/index.php/Creating_a_patch_to_submit_(Patch_Tracker)

I am not familliar how I can create a patch to submit!

Navigation

[0] Message Index

[#] Next page

Go to full version