Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - complex.h 4.7.2: (20 Items)
   
complex.h 4.7.2  
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

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.

Regards,

Ryan Mansfield

RE: complex.h 4.7.2  

> -----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

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,

Ryan Mansfield

RE: complex.h 4.7.2  

> -----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
RE: complex.h 4.7.2  

> -----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
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..

Regards, 

Ryan Mansfield 
RE: RE: complex.h 4.7.2  

> -----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

Re: complex.h 4.7.2  
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
Re: complex.h 4.7.2  
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
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
RE: complex.h 4.7.2  
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
Re: RE: complex.h 4.7.2  
Hi Mario,

The patch works well :)

Thanks,

Anton
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
Re: complex.h 4.7.2  
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
>

Attachment: Text complex.h 23.66 KB
Re: complex.h 4.7.2  
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
Re: complex.h 4.7.2  
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

RE: RE: complex.h 4.7.2  
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
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
Re: complex.h 4.7.2  
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] "