Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - errno: Page 1 of 2 (28 Items)
   
errno  
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.
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
> 
RE: errno  
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
> 
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...


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
> 
RE: errno  
Is this something we should mention in the release notes?

Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems 
Re: errno  
Nope. There is a lot of weird stuff that indexer cannot parse properly. It does not affect functionality (just a warning
 that can be turned off)
It is not worth mentioning imho.

Steve Reid wrote:
> Is this something we should mention in the release notes?
> 
> Steve Reid (stever@qnx.com)
> Technical Editor
> QNX Software Systems 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28377
> 
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 2:53 PM
> To: general-ide
> Subject: Re: errno
> 
> Nope. There is a lot of weird stuff that indexer cannot parse properly.
> It does not affect functionality (just a warning that can be turned
> off)
> It is not worth mentioning imho.

Not working properly is one thing, but having the editor show a warning (question marks and yellow underlines all over 
the place) is worth a "don`t spend time search for a solution" release note?
 
> 
> Steve Reid wrote:
> > Is this something we should mention in the release notes?
> >
> > Steve Reid (stever@qnx.com)
> > Technical Editor
> > QNX Software Systems
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28377
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28383
> 
Re: errno  
What is the solution for errno btw? Did it work what I said?

There is no universal solution btw...

Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: April-29-09 2:53 PM
>> To: general-ide
>> Subject: Re: errno
>>
>> Nope. There is a lot of weird stuff that indexer cannot parse properly.
>> It does not affect functionality (just a warning that can be turned
>> off)
>> It is not worth mentioning imho.
> 
> Not working properly is one thing, but having the editor show a warning (question marks and yellow underlines all over
 the place) is worth a "don`t spend time search for a solution" release note?
>  
>> Steve Reid wrote:
>>> Is this something we should mention in the release notes?
>>>
>>> Steve Reid (stever@qnx.com)
>>> Technical Editor
>>> QNX Software Systems
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post28377
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post28383
>>
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28384
> 
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 3:15 PM
> To: general-ide
> Subject: Re: errno
> 
> What is the solution for errno btw? Did it work what I said?
> 

No it didn`t.  I gave a description of what I saw in another post?


> There is no universal solution btw...
> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 2:53 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Nope. There is a lot of weird stuff that indexer cannot parse
> properly.
> >> It does not affect functionality (just a warning that can be turned
> >> off)
> >> It is not worth mentioning imho.
> >
> > Not working properly is one thing, but having the editor show a
> warning (question marks and yellow underlines all over the place) is
> worth a "don`t spend time search for a solution" release note?
> >
> >> Steve Reid wrote:
> >>> Is this something we should mention in the release notes?
> >>>
> >>> Steve Reid (stever@qnx.com)
> >>> Technical Editor
> >>> QNX Software Systems
> >>>
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post28377
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post28383
> >>
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28384
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28386
> 
Re: errno  
Yeah which means _STD expands to ::std::. So if you override it for C it suppose to be gone...

Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: April-29-09 3:15 PM
>> To: general-ide
>> Subject: Re: errno
>>
>> What is the solution for errno btw? Did it work what I said?
>>
> 
> No it didn`t.  I gave a description of what I saw in another post?
> 
> 
>> There is no universal solution btw...
>>
>> Mario Charest wrote:
>>>> -----Original Message-----
>>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>>>> Sent: April-29-09 2:53 PM
>>>> To: general-ide
>>>> Subject: Re: errno
>>>>
>>>> Nope. There is a lot of weird stuff that indexer cannot parse
>> properly.
>>>> It does not affect functionality (just a warning that can be turned
>>>> off)
>>>> It is not worth mentioning imho.
>>> Not working properly is one thing, but having the editor show a
>> warning (question marks and yellow underlines all over the place) is
>> worth a "don`t spend time search for a solution" release note?
>>>> Steve Reid wrote:
>>>>> Is this something we should mention in the release notes?
>>>>>
>>>>> Steve Reid (stever@qnx.com)
>>>>> Technical Editor
>>>>> QNX Software Systems
>>>>>
>>>>> _______________________________________________
>>>>> General
>>>>> http://community.qnx.com/sf/go/post28377
>>>>>
>>>> _______________________________________________
>>>> General
>>>> http://community.qnx.com/sf/go/post28383
>>>>
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post28384
>>>
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post28386
>>
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28387
> 
RE: errno  
> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 3:24 PM
> To: general-ide
> Subject: Re: errno
> 
> Yeah which means _STD expands to ::std::. So if you override it for C
> it suppose to be gone...

In Paths and Symbols, for languages I only see Assembly and GNU C.  I was expecting GNU C++.  That being said _STD is 
defined for GNU C but still no go.

> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 3:15 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> What is the solution for errno btw? Did it work what I said?
> >>
> >
> > No it didn`t.  I gave a description of what I saw in another post?
> >
> >
> >> There is no universal solution btw...
> >>
> >> Mario Charest wrote:
> >>>> -----Original Message-----
> >>>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >>>> Sent: April-29-09 2:53 PM
> >>>> To: general-ide
> >>>> Subject: Re: errno
> >>>>
> >>>> Nope. There is a lot of weird stuff that indexer cannot parse
> >> properly.
> >>>> It does not affect functionality (just a warning that can be
> turned
> >>>> off)
> >>>> It is not worth mentioning imho.
> >>> Not working properly is one thing, but having the editor show a
> >> warning (question marks and yellow underlines all over the place) is
> >> worth a "don`t spend time search for a solution" release note?
> >>>> Steve Reid wrote:
> >>>>> Is this something we should mention in the release notes?
> >>>>>
> >>>>> Steve Reid (stever@qnx.com)
> >>>>> Technical Editor
> >>>>> QNX Software Systems
> >>>>>
> >>>>> _______________________________________________
> >>>>> General
> >>>>> http://community.qnx.com/sf/go/post28377
> >>>>>
> >>>> _______________________________________________
> >>>> General
> >>>> http://community.qnx.com/sf/go/post28383
> >>>>
> >>>
> >>> _______________________________________________
> >>> General
> >>> http://community.qnx.com/sf/go/post28384
> >>>
> >> _______________________________________________
> >> General
> >> http://community.qnx.com/sf/go/post28386
> >>
> >
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post28387
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28388
> 
Re: errno  
Strange that I cannot reproduce it, I create managed c++ project and add cpp and c file. For each of them errno defined 
differently,
Try to enable full indexing in C/C++ General->Indexing in project properties. (It won't cache headers for full indexing 
which (caching) is probably case of the error).
Do you include errno.h explicitly in every file that uses it?


Mario Charest wrote:
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: April-29-09 3:24 PM
>> To: general-ide
>> Subject: Re: errno
>>
>> Yeah which means _STD expands to ::std::. So if you override it for C
>> it suppose to be gone...
> 
> In Paths and Symbols, for languages I only see Assembly and GNU C.  I was expecting GNU C++.  That being said _STD is 
defined for GNU C but still no go.
> 
>
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: April-29-09 3:36 PM
> To: general-ide
> Subject: Re: errno
> 
> Strange that I cannot reproduce it, I create managed c++ project and
> add cpp and c file. For each of them errno defined differently,
> Try to enable full indexing in C/C++ General->Indexing in project
> properties. (It won't cache headers for full indexing which (caching)
> is probably case of the error).

I always use Full Indexing.  I use 6.4.1 but the 6.3.2 tools

> Do you include errno.h explicitly in every file that uses it?

In the C file I`m checking, it`s there.  There might be some files (project contains huge number of file), that do not 
include it explicitly in every file but rather through some other header file.

I creates new dummy C++ project with one C file and one C++ files and just like you I can`t reproduce it.  I'll try to 
find out what is different and will get back to you.

> 
> 
> Mario Charest wrote:
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 3:24 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Yeah which means _STD expands to ::std::. So if you override it for
> C
> >> it suppose to be gone...
> >
> > In Paths and Symbols, for languages I only see Assembly and GNU C.  I
> was expecting GNU C++.  That being said _STD is defined for GNU C but
> still no go.
> >
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post28395
> 
Re: errno  
> Strange that I cannot reproduce it, I create managed c++ project and add cpp 
> and c file. For each of them errno defined differently,
> Try to enable full indexing in C/C++ General->Indexing in project properties. 
> (It won't cache headers for full indexing which (caching) is probably case of 
> the error).
> Do you include errno.h explicitly in every file that uses it?
> 

I manage to create a VERY stripped down version of a project that shows the problem.  Just import it, then load the file
 applications/fusion/init.c and int a = errno;  should be shown as a syntax error.  

I looked at the Build Variables and when Show System Variables is activated I can see __cplusplus is present.  That 
could explain it?  Because the macro resolved shows errno to be std::...... so it treats the C file as C++.

> 
> Mario Charest wrote:
> >> -----Original Message-----
> >> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> >> Sent: April-29-09 3:24 PM
> >> To: general-ide
> >> Subject: Re: errno
> >>
> >> Yeah which means _STD expands to ::std::. So if you override it for C
> >> it suppose to be gone...
> > 
> > In Paths and Symbols, for languages I only see Assembly and GNU C.  I was 
> expecting GNU C++.  That being said _STD is defined for GNU C but still no go.
> 
> > 
> >


Re: errno  
Woops forgot to attach the file.
Attachment: Text arch.7z 88.68 KB
Re: errno  
What it this format? Can you just zip it?

Mario Charest wrote:
> Woops forgot to attach the file.
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29039
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: May-08-09 11:17 AM
> To: general-ide
> Subject: Re: errno
> 
> What it this format?

It's 7z, 

>Can you just zip it? 

I will resist, 7z is so much better then zip ;-)

www.7zip.org

Or sudo apt-get install 7za
7za x <file>

You'll never look back. Lol!

> 
> Mario Charest wrote:
> > Woops forgot to attach the file.
> >
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post29039
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29042
> 
Re: errno  
Why you such a pain?

sudo apt-get install 7za
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package 7za


Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
>> Sent: May-08-09 11:17 AM
>> To: general-ide
>> Subject: Re: errno
>>
>> What it this format?
> 
> It's 7z, 
> 
>> Can you just zip it? 
> 
> I will resist, 7z is so much better then zip ;-)
> 
> www.7zip.org
> 
> Or sudo apt-get install 7za
> 7za x <file>
> 
> You'll never look back. Lol!
> 
>> Mario Charest wrote:
>>> Woops forgot to attach the file.
>>>
>>> _______________________________________________
>>> General
>>> http://community.qnx.com/sf/go/post29039
>> _______________________________________________
>> General
>> http://community.qnx.com/sf/go/post29042
>>
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29044
> 
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: May-08-09 11:36 AM
> To: general-ide
> Subject: Re: errno
> 
> Why you such a pain?
> 

Lol! You'd have to ask my mother.

Sorry made a typo it's sudo apt-get install p7zip

Just before I got this email I sent you the tgz file ;-)
Re: errno  
> What it this format? Can you just zip it?
> 

Anything to please ;-)

> Mario Charest wrote:
> > Woops forgot to attach the file.
> > 
> > _______________________________________________
> > General
> > http://community.qnx.com/sf/go/post29039


Attachment: Text arch.tgz 111.89 KB
Re: errno  
> > What it this format? Can you just zip it?
> > 
> 
> Anything to please ;-)
> 
> > Mario Charest wrote:
> > > Woops forgot to attach the file.
> > > 
> > > _______________________________________________
> > > General
> > > http://community.qnx.com/sf/go/post29039
> 
> 


Anyone care to look at that.  Now that we have start to deploy 6.4.1 everyone is complaining about this.
Re: errno  
Sorry did not have a chance yet. But it has been on my whiteboard as todo for a while! PR #69642.

> Anyone care to look at that.  Now that we have start to deploy 6.4.1 everyone is complaining about this.
> 
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: July-06-09 11:36 AM
> To: general-ide
> Subject: Re: errno
> 
> Sorry did not have a chance yet. But it has been on my whiteboard as
> todo for a while! PR #69642.

Thanks!

> 
> > Anyone care to look at that.  Now that we have start to deploy 6.4.1
> everyone is complaining about this.
> >
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post33187
> 
Re: errno  
Probably error in scanner discovery (that tries to guess macro names to be defined for each file). Can you remove 
manually __cplusplus var for this file?
If you can attach the project I can look at it...

>>
> 
> I manage to create a VERY stripped down version of a project that shows the problem.  Just import it, then load the 
file applications/fusion/init.c and int a = errno;  should be shown as a syntax error.  
> 
> I looked at the Build Variables and when Show System Variables is activated I can see __cplusplus is present.  That 
could explain it?  Because the macro resolved shows errno to be std::...... so it treats the C file as C++.
> 
>
RE: errno  

> -----Original Message-----
> From: Elena Laskavaia [mailto:community-noreply@qnx.com]
> Sent: May-08-09 11:16 AM
> To: general-ide
> Subject: Re: errno
> 
> Probably error in scanner discovery (that tries to guess macro names to
> be defined for each file). Can you remove manually __cplusplus var for
> this file?

How do you propose I do that?  It's a system variable as per the IDE, I can't remove it.

> If you can attach the project I can look at it...
> 
> >>
> >
> > I manage to create a VERY stripped down version of a project that
> shows the problem.  Just import it, then load the file
> applications/fusion/init.c and int a = errno;  should be shown as a
> syntax error.
> >
> > I looked at the Build Variables and when Show System Variables is
> activated I can see __cplusplus is present.  That could explain it?
> Because the macro resolved shows errno to be std::...... so it treats
> the C file as C++.
> >
> >
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post29041
>