Archive: Error api.h while compiling source


Error api.h while compiling source
Hello,

i'm trying to compile the cvs version of nsis from 20081212 and i get an error with api.h

here is the log:

cl /Fobuild\release\ExDLL\plugin.obj /c Contrib\ExDLL\plugin.c /nologo /GS- /GS-
/O1 /W3 /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_WARNINGS "/D{'NSISCALL': '_
_stdcall'}" /ISource\exehead
plugin.c
Source\exehead\api.h(62) : error C2143: erreur de syntaxeÂ_: absence de ')' avant
'*'
Source\exehead\api.h(62) : error C2059: erreur de syntaxeÂ_: ')'
Source\exehead\api.h(63) : error C2143: erreur de syntaxeÂ_: absence de ')' avant
'*'
Source\exehead\api.h(63) : error C2143: erreur de syntaxeÂ_: absence de '{' avant
'*'
Source\exehead\api.h(63) : error C2059: erreur de syntaxeÂ_: ')'
Source\exehead\api.h(64) : error C2143: erreur de syntaxeÂ_: absence de ')' avant
'*'
Source\exehead\api.h(64) : error C2143: erreur de syntaxeÂ_: absence de '{' avant
'*'
Source\exehead\api.h(64) : error C2059: erreur de syntaxeÂ_: ')'
Source\exehead\api.h(65) : error C2059: erreur de syntaxeÂ_: '}'
scons: *** [build\release\ExDLL\plugin.obj] Error 2
scons: building terminated because of errors.

X:\Scripts NSIS\NSIS-20081212>
Hope it helps


PS: I'm using VC9 SP1 to compile

Upgrade SCons to the latest version. Which version of SCons are you using? We should deprecate it.


Hello,

i'm using 1.1.0.d20081207 version of scons...

i'll try with 1.10...


scons 1.1.0.d20081125 gives the same result
scons 1.1.0 refuses to compile (cant find libcp), even with the trick in scons/config/ms to use path of os...

scons 1.0.1 -> refuses to compile (cant find libcp)

I must say, that i already could compile nsis with scons 1.1.0.d20081207, the problem occured after the last modifications in the svn files...


Then it's probably the mix of the dictionary and the list. I thought SCons would be smarter than that. Try commenting out line 20 in SCons\Config\ms.


It now working fine with your last corrections...

thanks a lot