[Scons-users] Specify Toolchain for Windows

Bill Deegan bill at baddogconsulting.com
Tue May 16 23:24:50 EDT 2017


By the time you set PATH, the mingw tool has already initialized with the
default path.

Try this:

path = ['C:\MinGW\x86_64-6.3.0-posix-seh-rt_v5-rev2\mingw64\bin']

env = Environment(tools=['])
env.PrependENVPath('PATH',path)
env.Tool('default')
shooter = env.Program(target=target, source=sources,
                  LIBS=libraries, CPPPATH=incpath, LIBPATH=libpath)



On Tue, May 16, 2017 at 12:48 PM, R0b0t1 <r030t1 at gmail.com> wrote:

> On Tue, May 16, 2017 at 11:15 AM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
> > SCons doesn't use the users shell PATH.
> > It constructs it.
> > So if you want to put the mingw-w64 path in  your Environement()'s PATH,
> > that should help if find the right set of mingw tools
> >
> > -Bill
> >
>
> Thanks for the comment. I've tried to set the following:
>
> ```Python
> path = ['C:\MinGW\x86_64-6.3.0-posix-seh-rt_v5-rev2\mingw64\bin']
>
> environ = Environment(tools=['default'])
> shooter = environ.Program(target=target, source=sources,
>     PATH=path, LIBS=libraries, CPPPATH=incpath, LIBPATH=libpath)
> ```
> Where the other values are valid.
> But SCons still uses the 32 bit MinGW with GCC 5.3.0:
>
> ```
> c:/mingw/bin/../lib/gcc/mingw32/5.3.0/../../../
> libmingw32.a(main.o):(.text.startup+0xa0):
> undefined reference to `WinMain at 16'
> ```
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170516/d6278cc9/attachment.html>


More information about the Scons-users mailing list