Mario Charest
03/07/2014 6:03 PM
post109288
|
6.6.0
Create a new QNX C++ project, remplace the content of the newly create .cc file with
#include <complex.h>
Compile. I get:
d:/qnx660/target/qnx6/usr/include/complex.h:921:13: error: 'std::clog' has not been declared
|
|
|
Ryan Mansfield(deleted)
03/10/2014 9:19 AM
post109298
|
On 14-03-07 06:03 PM, Mario Charest wrote:
> 6.6.0
>
> Create a new QNX C++ project, remplace the content of the newly create .cc file with
>
> #include <complex.h>
>
> Compile. I get:
>
> d:/qnx660/target/qnx6/usr/include/complex.h:921:13: error: 'std::clog' has not been declared
Thanks for the report. I've filed issue # 627492 and will fix.
Regards,
Ryan Mansfield
|
|
|
Mario Charest
03/10/2014 9:27 AM
post109299
|
> -----Message d'origine-----
> De : Ryan Mansfield [mailto:community-noreply@qnx.com]
> Envoyé : 10 mars 2014 09:20
> À : general-toolchain@community.qnx.com
> Objet : Re: complex.h 4.7.2
>
> On 14-03-07 06:03 PM, Mario Charest wrote:
> > 6.6.0
> >
> > Create a new QNX C++ project, remplace the content of the newly create .cc
> file with
> >
> > #include <complex.h>
> >
> > Compile. I get:
> >
> > d:/qnx660/target/qnx6/usr/include/complex.h:921:13: error: 'std::clog' has
> not been declared
>
> Thanks for the report. I've filed issue # 627492 and will fix.
Would you mind sharing the fix ? Can`t use boost because of this.
>
> Regards,
>
> Ryan Mansfield
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post109298
> To cancel your subscription to this discussion, please e-mail general-toolchain-
> unsubscribe@community.qnx.com
|
|
|
Ryan Mansfield(deleted)
03/10/2014 9:35 AM
post109300
|
On 14-03-10 09:26 AM, Mario Charest wrote:
>
>
>> -----Message d'origine-----
>> De : Ryan Mansfield [mailto:community-noreply@qnx.com]
>> Envoyé : 10 mars 2014 09:20
>> À : general-toolchain@community.qnx.com
>> Objet : Re: complex.h 4.7.2
>>
>> On 14-03-07 06:03 PM, Mario Charest wrote:
>>> 6.6.0
>>>
>>> Create a new QNX C++ project, remplace the content of the newly create .cc
>> file with
>>>
>>> #include <complex.h>
>>>
>>> Compile. I get:
>>>
>>> d:/qnx660/target/qnx6/usr/include/complex.h:921:13: error: 'std::clog' has
>> not been declared
>>
>> Thanks for the report. I've filed issue # 627492 and will fix.
>
> Would you mind sharing the fix ? Can`t use boost because of this.
A quick fix would be to comment out line 921 of complex.h (e.g. using
std::clog) within the STD_USING block.
Regards,
Ryan Mansfield
|
|
|
Mario Charest
03/10/2014 5:14 PM
post109318
|
> -----Message d'origine-----
> De : Ryan Mansfield [mailto:community-noreply@qnx.com]
> Envoyé : 10 mars 2014 09:36
> À : general-toolchain@community.qnx.com
> Objet : Re: complex.h 4.7.2
>
> On 14-03-10 09:26 AM, Mario Charest wrote:
> >
> >
> >> -----Message d'origine-----
> >> De : Ryan Mansfield [mailto:community-noreply@qnx.com]
> >> Envoyé : 10 mars 2014 09:20
> >> À : general-toolchain@community.qnx.com
> >> Objet : Re: complex.h 4.7.2
> >>
> >> On 14-03-07 06:03 PM, Mario Charest wrote:
> >>> 6.6.0
> >>>
> >>> Create a new QNX C++ project, remplace the content of the newly create
> .cc
> >> file with
> >>>
> >>> #include <complex.h>
> >>>
> >>> Compile. I get:
> >>>
> >>> d:/qnx660/target/qnx6/usr/include/complex.h:921:13: error: 'std::clog' has
> >> not been declared
> >>
> >> Thanks for the report. I've filed issue # 627492 and will fix.
> >
> > Would you mind sharing the fix ? Can`t use boost because of this.
>
> A quick fix would be to comment out line 921 of complex.h (e.g. using
> std::clog) within the STD_USING block.
When commented out, line 905 gives an error : unknown clog() I had to prefix clog() with ::
>
> Regards,
>
> Ryan Mansfield
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post109300
> To cancel your subscription to this discussion, please e-mail general-toolchain-
> unsubscribe@community.qnx.com
|
|
|
Mario Charest
03/10/2014 6:00 PM
post109319
|
> -----Message d'origine-----
> De : Ryan Mansfield [mailto:community-noreply@qnx.com]
> Envoyé : 10 mars 2014 09:36
> À : general-toolchain@community.qnx.com
> Objet : Re: complex.h 4.7.2
>
> On 14-03-10 09:26 AM, Mario Charest wrote:
> >
> >
> >> -----Message d'origine-----
> >> De : Ryan Mansfield [mailto:community-noreply@qnx.com]
> >> Envoyé : 10 mars 2014 09:20
> >> À : general-toolchain@community.qnx.com
> >> Objet : Re: complex.h 4.7.2
> >>
> >> On 14-03-07 06:03 PM, Mario Charest wrote:
> >>> 6.6.0
> >>>
> >>> Create a new QNX C++ project, remplace the content of the newly create
> .cc
> >> file with
> >>>
> >>> #include <complex.h>
> >>>
> >>> Compile. I get:
> >>>
> >>> d:/qnx660/target/qnx6/usr/include/complex.h:921:13: error: 'std::clog' has
> >> not been declared
> >>
> >> Thanks for the report. I've filed issue # 627492 and will fix.
> >
> > Would you mind sharing the fix ? Can`t use boost because of this.
>
> A quick fix would be to comment out line 921 of complex.h (e.g. using
> std::clog) within the STD_USING block.
>
> Regards,
>
Another instance but this time with <complex>
#include <complex>
#include <boost/iterator/iterator_facade.hpp>
T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected ')' before numeric constant
T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected '>' before numeric constant
....
Cheers,
> Ryan Mansfield
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post109300
> To cancel your subscription to this discussion, please e-mail general-toolchain-
> unsubscribe@community.qnx.com
|
|
|
Ryan Mansfield(deleted)
03/10/2014 6:26 PM
post109322
|
Sorry, rejoining the thread.
I will have to check but complex.h as per the standard defines "I" which conflicts with Boosts using it as a template
parameter.
See boost bug:
https://svn.boost.org/trac/boost/ticket/8349
which they marked as wontfix..
Regards,
Ryan Mansfield
|
|
|
Mario Charest
03/10/2014 7:18 PM
post109323
|
> -----Message d'origine-----
> De : Ryan Mansfield [mailto:community-noreply@qnx.com]
> Envoyé : 10 mars 2014 18:26
> À : general-toolchain
> Objet : Re: RE: complex.h 4.7.2
>
> Sorry, rejoining the thread.
>
> I will have to check but complex.h as per the standard defines "I" which
> conflicts with Boosts using it as a template parameter.
>
> See boost bug:
>
> https://svn.boost.org/trac/boost/ticket/8349
>
> which they marked as wontfix..
Ouch, note that I'm not using <complex*>, boost includes it on its own. Hence I can't really do much about it. I get
the error when doing #include <boost/lexical_cast.h>,
>
> Regards,
>
> Ryan Mansfield
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post109322
> To cancel your subscription to this discussion, please e-mail general-toolchain-
> unsubscribe@community.qnx.com
|
|
|
Zongjun Sun(deleted)
03/27/2014 6:12 AM
post109626
|
I use SDP 660 to build one mature project. It reports the following error.
~/qnx660/target/qnx6/usr/include/complex.h:905:20: error: no match for call to '(std::ostream {aka std::basic_ostream<
char, std::char_traits<char> >})
in fact the clog function was regarded as iostream clog. I don't know why SDP660 can have such bug.
Thanks/Zongjun
|
|
|
Zongjun Sun(deleted)
03/27/2014 6:23 AM
post109627
|
My code include boost file
from include/boost/config/no_tr1/complex.hpp:21,
from include/boost/math/special_functions/math_fwd.hpp:30,
from include/boost/math/special_functions/sign.hpp:17,
from include/boost/lexical_cast.hpp:167,
from example.cpp:19:
Here is the code segment.
#include <iostream>
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/shared_ptr.hpp>
The release version can be built successfully if I moved the iostream to the end. But the debug version still fails with
the same error.
Hope it helps.
Zongjun
|
|
|
Anton Indrawan(deleted)
09/14/2014 9:39 AM
post111707
|
Hi,
I reproduced this error as well using QNX SDP 6.6.
The error is as follows:
/opt/qnx660/target/qnx6/usr/include/complex.h: In function 'std::_Dcomplex std::log(std::_Dcomplex)':
/opt/qnx660/target/qnx6/usr/include/complex.h:905:20: error: no match for call to '(std::ostream {aka std::basic_ostream
<char, std::char_traits<char> >}) (std::_Dcomplex&)'
Is there any workaround or fix about this issue?
Best regards,
Anton
|
|
|
Mario Charest
09/14/2014 12:40 PM
post111708
|
There is a patch available for QNX6.6.0 that addresses this problem. It is available on QNX`s web site.
-----Message d'origine-----
De : Anton Indrawan [mailto:community-noreply@qnx.com]
Envoyé : 14 septembre 2014 09:39
À : general-toolchain
Objet : Re: complex.h 4.7.2
Hi,
I reproduced this error as well using QNX SDP 6.6.
The error is as follows:
/opt/qnx660/target/qnx6/usr/include/complex.h: In function 'std::_Dcomplex std::log(std::_Dcomplex)':
/opt/qnx660/target/qnx6/usr/include/complex.h:905:20: error: no match for call to '(std::ostream {aka std::basic_ostream
<char, std::char_traits<char> >}) (std::_Dcomplex&)'
Is there any workaround or fix about this issue?
Best regards,
Anton
_______________________________________________
General
http://community.qnx.com/sf/go/post111707
To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
|
|
|
Anton Indrawan(deleted)
09/14/2014 4:26 PM
post111710
|
Hi Mario,
The patch works well :)
Thanks,
Anton
|
|
|
Anton Indrawan(deleted)
09/21/2014 2:12 PM
post111799
|
Hi Mario,
SInce you did experience a problem with Boost as you mentioned on page 6 in this thread, I would like to know whether
you have a workaround or fix. At this moment, I applied the patch attached in https://svn.boost.org/trac/boost/ticket/
8349 and it works well, but I am wondering whether there is a real fix rather than changing the official Boost code.
Quote from page 6:
T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected ')' before numeric constant
T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected '>' before numeric constant
Thank you,
Anton
|
|
|
Ryan Mansfield(deleted)
09/21/2014 3:08 PM
post111801
|
Hi Anton, Mario,
Please try with the attached header which doesn't define I within
__cplusplus to avoid collisions.
Regards,
Ryan Mansfield
On 14-09-21 02:12 PM, Anton Indrawan wrote:
> Hi Mario,
>
> SInce you did experience a problem with Boost as you mentioned on page 6 in this thread, I would like to know whether
you have a workaround or fix. At this moment, I applied the patch attached in https://svn.boost.org/trac/boost/ticket/
8349 and it works well, but I am wondering whether there is a real fix rather than changing the official Boost code.
>
> Quote from page 6:
> T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected ')' before numeric constant
> T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected '>' before numeric constant
>
> Thank you,
> Anton
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post111799
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
>
|
|
|
Anton Indrawan(deleted)
09/21/2014 3:24 PM
post111802
|
Hi Ryan,
Thanks for your reply. Yes, it is better than the patch attached to https://svn.boost.org/trac/boost/ticket/
8349.
Is your patch going to be released as an official QNX patch?
Best regards,
Anton
|
|
|
Ryan Mansfield(deleted)
09/21/2014 3:38 PM
post111803
|
On 14-09-21 03:24 PM, Anton Indrawan wrote:
> Hi Ryan,
>
> Thanks for your reply. Yes, it is better than the patch attached to https://svn.boost.org/trac/boost/ticket/
> 8349.
>
> Is your patch going to be released as an official QNX patch?
Yes, that's the plan.
Regards,
Ryan Mansfield
|
|
|
Mario Charest
09/21/2014 5:14 PM
post111805
|
Anton,
We use 4.8.3, it implies using gnu c++ lib instead of Dinkum, the problem went away.
I realize 4.8.3 isn't officially supported by QNX, but what the hell, I don't mind living dangerously to move into the
year 2014 ( 4.7.2 is 2 years old), that's an editorial comment, lol!
Thanks for whom ever (Randy?) did the work to have 4.8.3 publish on Foundry,
-----Message d'origine-----
De : Anton Indrawan [mailto:community-noreply@qnx.com]
Envoyé : 21 septembre 2014 14:13
À : general-toolchain
Objet : Re: RE: complex.h 4.7.2
Hi Mario,
SInce you did experience a problem with Boost as you mentioned on page 6 in this thread, I would like to know whether
you have a workaround or fix. At this moment, I applied the patch attached in https://svn.boost.org/trac/boost/ticket/
8349 and it works well, but I am wondering whether there is a real fix rather than changing the official Boost code.
Quote from page 6:
T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected ')' before numeric constant
T:/opt/boost_1_55_0/boost/iterator/iterator_facade.hpp:43:19: error: expected '>' before numeric constant
Thank you,
Anton
_______________________________________________
General
http://community.qnx.com/sf/go/post111799
To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
|
|
|
Anton Indrawan(deleted)
|
Re: RE: RE: complex.h 4.7.2
|
Anton Indrawan(deleted)
09/22/2014 3:57 AM
post111815
|
Re: RE: RE: complex.h 4.7.2
Hi Mario,
Thanks for your reply.
Using the GNU C++, I don't have this problem. Thanks to Ryan for the patch which works with the Dinkum one
Best regards,
Anton
|
|
|
Peter Luscher(deleted)
11/06/2014 9:35 AM
post112288
|
See also:
--> http://www.qnx.com
--> Log on to myQNX (top right)
--> Click on "Download QNX 6.6.0" (near center of page)
--> Download "QNX® Software Development Platform 6.6 Header Files Patch [Patch ID 3851] "
|
|
|
|