[Scons-users] No executable for fortran program with module

Christopher Dimech dimech.christopher at gmail.com
Sun Oct 5 09:27:17 EDT 2014


Good afternoon Gary,

It would help if you can write down the code you would write,
as I only started using it yesterday and can be confusing.

On 5 October 2014 14:16, Gary Oberbrunner <garyo at oberbrunner.com> wrote:

> On Sun, Oct 5, 2014 at 8:55 AM, Christopher Dimech
> <dimech.christopher at gmail.com> wrote:
> > env = Environment(ENV = {'PATH' : path})
> > env.Append(tools=['default','gfortran'],LINK='gfortran',LINKFLAGS='-g')
> > env.Append(FORTRANFLAGS='-ffree-form -g'
>
>
> To specify tools for an Env, you have to pass them to the constructor.
> Saying tools=[...] in env.Append will only create a construction
> variable called 'tools'.  You probably also don't want to use Append
> for LINK since that would append 'gfortran' to whatever the default
> link command is on your OS.  Better would be env['LINK'] = 'gfortran',
> though I think the gfortran tool itself ought to do this.
>
> --
> Gary
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>



-- 
Christopher Dimech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20141005/708a08ae/attachment.html>


More information about the Scons-users mailing list