[Scons-users] "executable should have exactly one target with the suffix: .exe" error

Paweł Góralski nokturnal at nokturnal.pl
Sun Aug 18 04:49:47 EDT 2013


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'])

where:
EXE_EXT_1='.tos'
MIDI_SEQ_TEST_EXE='midiseq' + EXE_EXT_1
midiOut_test_src = ["../demo/midi_output/midiTest.c"]
input_src = ["tos/ikbd.s"]
LIBRARYNAME = 'amidi'
LIB_POSTFIX='060'

The problem is that I don't need exe, because I use cross compiler and
target totally different platform than win32 and i'm not outputting
binaries with this extension at all. Second thing, changing EXE_EXT_1 to
'exe' doesn't solve anything at all.

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.

Regards,
Pawel


More information about the Scons-users mailing list