Mario Charest
04/29/2009 3:46 PM
post28397
|
> -----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
>
|
|
|
Mario Charest
05/08/2009 11:12 AM
post29038
|
> 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.
>
> >
> >
|
|
|