HI,
document as an attachment
Dale Becker
Kerber, Eck & Braeckel LLP
1000 Myers Building
Springfield, IL 62701
Phone: 217-789-0960
Fax: 217-789-2822
http://www.kebcpa.com
Kerber, Eck & Braeckel, LLP
CONFIDENTIALITY NOTICE:
This email and any attachments are for the exclusive and confidential
use of the intended recipient. If you are not the intended recipient,
please do not read, distribute or take action in reliance upon this
message. If you have received this in error, please notify us
immediately by return email to sender at KEB and promptly delete this
message and its attachments from your computer system.
Hello,
I have a problem compiling an application (kde4-kupdateapplet) to which
I'm adding some code that uses libzypp. When compiling, I'm getting this
error: http://paste.opensuse.org/36038415
It seems to be related to the for_ definition in libzypp
9.37.10-0.8.1.10 (which is what SLES11-SP3 is using) as:
#define for_(IT,BEG,END) for ( typeof(BEG) IT = BEG, _for_end = END; IT
!= _for_end; ++IT )
I saw that in libzypp 14.32.0, for_ is also defined using auto instead
of typeof, so I tried changing the definition to
#define for_(IT,BEG,END) for ( auto IT = BEG, _for_end = END; IT !=
_for_end; ++IT )
and then I got a different error:
/usr/include/zypp/base/String.h: In function ‘std::string
zypp::str::joinEscaped(_Iterator, _Iterator, char)’:
/usr/include/zypp/base/String.h:661: error: invalid type argument of
‘unary *’
/usr/include/zypp/base/String.h:667: error: invalid type argument of
‘unary *’
/usr/include/zypp/base/String.h:670: error: invalid type argument of
‘unary *’
/usr/include/zypp/base/String.h:672: error: invalid type argument of
‘unary *’
Also, libzypp 9.37.10 compiles fine in SLES11-SP3, so I'm inclined to
thinking that it should compile fine with the original definition and
the problem is a missing compiler flag, preprocessor definition or
#include, but I'm unable to find the cause.
Can anyone tell me what's wrong there?
Thanks!
PS: Please, keep me in CC since I'm not subscribed to this list
--
Antonio Larrosa
--
To unsubscribe, e-mail: zypp-devel+unsubscribe(a)opensuse.org
To contact the owner, e-mail: zypp-devel+owner(a)opensuse.org