I am trying to use scons to build a program in fortran 2008.
I am using a makefile to build the program as follows
Then I created SConstuct as follows
The makefile builds the program successfully. However I am having problems
with SConstruct. I do need to add the -ffree-form somehow. Any way I can
do that? If I do not incude it, the compiler complains as it will assume fixed
format for .f files. My .f files conform to fortran 2008 standard. However I
want to still have the files as .f, rather than ending up with .f, .f90, .f95, .f03, .f08, ....
---------- Post updated at 08:19 PM ---------- Previous update was at 06:49 PM ----------
After updating SContruct as follows, the .mod and .o files have
been created. The solution was to use
However there stilll exists a problem because the executable
testconvert.x is not being created.
endian.f consists of a module called Endian
testconvert.f contains the main program which uses the
module Endian.
I have a tree structure as follows:
/vik/build/sc/botoh.sc
/vik/lib/endian.f
/vik/utils/botoh.f
Then I run the build script as
cd vik/build/sc
scons -f botoh.sc
The above shows that the SConstruct botoh.sc is down a few levels, and it
may be easiest to have the main... (6 Replies)