Forum Topic - errno: Page 2 of 2 (28 Items)
   
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 2:13 PM
> To: general-ide
> Subject: Re: errno
> 
> Check what it expands to (hover over or open Macro Expansion tool)
> If it cannot find _STD macro add it with value of <empty> to Path and
> Symbols->Symbols tab...

The project is a mix of C and C++ file but is setup as a C++ project. I just noticed the error
shows up in the .c file only and the macro does get expanted but to (::std:: __get_errno_ptr()). That`s obviously not C,
 that explains it.

> 
> 
> Mario Charest wrote:
> > Managed.
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 2:06 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Yeah... errno uses some non-standard macro which for some reason
> >> indexer cannot find. Qnx project or managed?
> >>
> >> Mario Charest wrote:
> >>> I've gotten use to this problem to the point I forgot to mention
> it.
> >> C++ project, IDE 6.4.1.  For any line that has errno in it, the
> editor
> >> indicate the line has a syntax error.
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post28371
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post28373
> >>
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28374
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28375
> 
Re: errno  
Hi, Mario,

I have investigated this problem, and I think I have a work-around for you.  There definitely appears to be a bug in the
 CDT indexer subsystem, but I haven't yet tracked down the root.

In any case, you should be able to restore your sanity by specifying some pre-indexed headers in your project settings. 
 I noticed that the sample project that you provided overrides the default setting, so you can restore that by pasting 
this list of files:

    cstdarg, cstdio, sys/resource.h, ctime, stdarg.h, stddef.h, sys/types.h

into the "Files to index up-front" field of the "C/C++ General -> Indexer" properties on your projects.

HTH,

Christian
RE: errno  
Christian,

Work around is a beauty ;-)  Makes for a nice day!

-----Original Message-----
From: Christian Damus [mailto:community-noreply@qnx.com] 
Sent: Friday, July 10, 2009 10:55 AM
To: general-ide
Subject: Re: errno

Hi, Mario,

I have investigated this problem, and I think I have a work-around for you.  There definitely appears to be a bug in the
 CDT indexer subsystem, but I haven't yet tracked down the root.

In any case, you should be able to restore your sanity by specifying some pre-indexed headers in your project settings. 
 I noticed that the sample project that you provided overrides the default setting, so you can restore that by pasting 
this list of files:

    cstdarg, cstdio, sys/resource.h, ctime, stdarg.h, stddef.h, sys/types.h

into the "Files to index up-front" field of the "C/C++ General -> Indexer" properties on your projects.

HTH,

Christian


_______________________________________________
General
http://community.qnx.com/sf/go/post33536