[Scons-users] Specify Toolchain for Windows
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
path = ['C:\MinGW\x86_64-6.3.0-posix-seh-rt_v5-rev2\mingw64\bin']
env = Environment(tools=['])
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>
> > 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:
> 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:
> undefined reference to `WinMain at 16'
> Scons-users mailing list
> Scons-users at scons.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scons-users