[Scons-users] "executable should have exactly one target with the suffix: .exe" error
Dirk Bächle
tshortik at gmx.de
Sun Aug 18 10:34:25 EDT 2013
Hi Paweł,
On 18.08.2013 10:49, Paweł Góralski wrote:
> Hi,
> I've got error when executing my Sconscript script, but only under
> Windows/Cygwin, under Linux everything works fine:
>
> "scons: *** An executable should have exactly one target with the
> suffix: .exe"
>
> The problematic line looks like this:
> env.Program(target=MIDI_SEQ_TEST_EXE,source=[midiOut_test_src +
> env.Object(input_src)], LIBS=[LIBRARYNAME + LIB_POSTFIX,'m'])
>
> [...]
> Anyone knows how to fix it? I've seen that several people had similar
> problem in the past, but I haven't seen any solution on the web.
>
the problem is that you defined '.tos' as suffix for your program, but
internally the Program builder still uses the default '.exe' extension.
Please try to set $PROGSUFFIX explicitly, either in the environment or
for your single call:
env.Program(target=MIDI_SEQ_TEST_EXE,source=[midiOut_test_src +
env.Object(input_src)], LIBS=[LIBRARYNAME + LIB_POSTFIX,'m'],
PROGSUFFIX='.tos')
Hope this helps.
Best regards,
Dirk
More information about the Scons-users
mailing list