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

Paweł Góralski nokturnal at nokturnal.pl
Mon Aug 19 01:40:06 EDT 2013


Hello,
thanks PROGSUFFIX helped :).

Regards,
Pawel

W dniu 2013-08-18 16:34, Dirk Bächle pisze:

> 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

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users



More information about the Scons-users mailing list