error C2143: syntax error : missing '{' before ':'
-
When I compile a C project in VC++ .Net, this error is coming in a standard vc++ file "cerrno": " error C2143: syntax error : missing '{' before ':'" The code is as follows:
#if _GLOBAL_USING
_STD_BEGIN
#ifndef errno
using ::errno; // <-- Compiler point error here
#endif /* errno */How to solve this error? Am I missing any SP for vc++ or something else? Regards, Suman
-- "Programming is an art that fights back!"
-
When I compile a C project in VC++ .Net, this error is coming in a standard vc++ file "cerrno": " error C2143: syntax error : missing '{' before ':'" The code is as follows:
#if _GLOBAL_USING
_STD_BEGIN
#ifndef errno
using ::errno; // <-- Compiler point error here
#endif /* errno */How to solve this error? Am I missing any SP for vc++ or something else? Regards, Suman
-- "Programming is an art that fights back!"
rp_suman wrote:
#if _GLOBAL_USING_STD_BEGIN #ifndef errnousing ::errno; // <-- Compiler point error here #endif /* errno */
please check setting of VC++ .net complier, might be it using path of older version!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>
-
rp_suman wrote:
#if _GLOBAL_USING_STD_BEGIN #ifndef errnousing ::errno; // <-- Compiler point error here #endif /* errno */
please check setting of VC++ .net complier, might be it using path of older version!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>
-
rp_suman wrote:
#if _GLOBAL_USING_STD_BEGIN #ifndef errnousing ::errno; // <-- Compiler point error here #endif /* errno */
please check setting of VC++ .net complier, might be it using path of older version!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>
How to check the path of the compiler? In the new system where error happened, there was no VC++ .Net 2003 Toolkit installed. I installed it now. Do I need to set this path to somewhere in compiler? Regards, Suman
-- "Programming is an art that fights back!"