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)
Discussion started by: kristinu
6 Replies
LEARN ABOUT CENTOS
tcp-env
tcp-env(1) General Commands Manual tcp-env(1)NAME
tcp-env - set up TCP-related environment variables
SYNOPSIS
tcp-env [ -rR ] [ -ttimeout ] program [ arg ... ]
DESCRIPTION
The input for tcp-env must be a TCP connection. tcp-env finds out information about that connection, puts the information into several
environment variables as described in tcp-environ(5), and runs program with the given arguments.
Usually tcp-env is run from inetd. It might instead be run from another server that already sets up the right environment variables; if
PROTO is set to TCP when tcp-env is invoked, tcp-env assumes that all the other variables are set up properly, and it does not check
whether the input is a TCP connection.
OPTIONS -r (Default.) Attempt to obtain TCPREMOTEINFO from the remote host.
-R Do not attempt to obtain TCPREMOTEINFO from the remote host.
-ttimeout
Give up on the TCPREMOTEINFO connection attempt after timeout seconds. Default: 30.
SEE ALSO tcp-environ(5), inetd(8)tcp-env(1)