compilation error of 2.11 on a debian 3.0
I have an old debian server 3.0 for a couple of month again :(
And I want to compile the new 2.11 version. my 2.09 compile without any problems.
I compile makensis like that:
scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=allI have the following error:
T_STANDARD_PREDEFINES -DNSIS_LOCKWINDOW_SUPPORT -DNSIS_CONFIG_PLUGIN_SUPPORT -DNSIS_FIX_COMMENT_HANDLING Source/Plugins.cpp
Source/Plugins.cpp: In function `size_t {anonymous}::file_size(ifstream &)':
Source/Plugins.cpp:50: parse error before `pos'
Source/Plugins.cpp:54: `pos_type' is not a member of type `ifstream'
Source/Plugins.cpp:54: parse error before `='
Source/Plugins.cpp:55: `result' undeclared (first use this function)
Source/Plugins.cpp:55: (Each undeclared identifier is reported only once
Source/Plugins.cpp:55: for each function it appears in.)
Source/Plugins.cpp:57: `pos' undeclared (first use this function)
Source/Plugins.cpp:60: warning: control reaches end of non-void function `{anonymous}::file_size(ifstream &)'
scons: *** [build/release/makensis/Plugins.o] Error 1
thats correspond on PLugins.cpp file to:
namespace {on this realy old debian, my gcc version is 2.95.3
size_t file_size(ifstream& file) {
const ifstream::pos_type pos = file.tellg();
It is the problem ?
Could it be fixed ?
I maybe could have a 3.04 version, but I can't be my default gcc compiler. So could I can set it with scons ?
If could be fix, it will be better :)
Thanks :)