[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling qtstalker 0.36 in lenny.



On Mon, Dec 01, 2008 at 05:46:00AM +0530, L.V.Gandhi wrote:
>      >    UpgradeMessage.cpp: In member function �id
>      UpgradeMessage::copyFiles()�>      >    UpgradeMessage.cpp:447: error: �stem�as not declared in this
>      scope
>      >    UpgradeMessage.cpp:454: error: �stem�as not declared in this
>      scope
>      >    UpgradeMessage.cpp:466: error: �stem�as not declared in this
>      scope
>      >    UpgradeMessage.cpp:472: error: �stem�as not declared in this
>      scope
>      >    UpgradeMessage.cpp:484: error: �stem�as not declared in this
>      scope
>      >    UpgradeMessage.cpp:496: error: �stem�as not declared in this
>      scope
>      >    make[1]: *** [UpgradeMessage.o] Error 1
>      >
>      >    I searched google for �stem�as not declared in this scope. But
>      I
>      >    couldn't get any link.
> 
>      Try adding #include <cstdlib> in the top of the file, along with the
>      other #include lines.
> 
>    Thanks.
>    Do you refer to configure file?

Sorry for not being clear. I meant, add it to the UpgradeMessage.cpp
file, along with the other includes in that file (ensure that you
don't place it between some preprocessor directives which evaluate to
false). Then, just running make again should build the file, maybe
giving you more files which miss some headers... there's no elegant
way to sort this issue out; either use an old compiler or add the
missing headers in each source file (or figure out a smart and neat
included file to put these headers where all of them pick it up)...

Hope this helps.

Kumar
-- 
Kumar Appaiah


Reply to: