Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
Posts: 4
Registered: ‎08-30-2013
My Device: Blackberry B10
My Carrier: Three

GNU stdc++ support for cascade applications

I am having run time errors when running cascade application depending on stdc++.

The issue is similar with QT and stdc++ marked as solved but without any definite solution.

http://supportforums.blackberry.com/t5/Native-Development/Desperate-for-help-with-simple-program-cra...

 

The error can be reproduced easily by including this library with -lzmq flag in a cascade example.

http://supportforums.blackberry.com/t5/Native-Development/Porting-libraries-ZeroMQ/m-p/2630497#M5079...

 

Any help is much appreciated

Jiva

Highlighted
New Contributor
Posts: 4
Registered: ‎08-30-2013
My Device: Blackberry B10
My Carrier: Three

Re: GNU stdc++ support for cascade applications

I have solved the problem now. It was required to link against -lcpp instead
of -lstdc++. And also the default c++ compiler needed to be specified as
below while compiling ZeroMQ.

For e.g. to compile ZeroMQ for a Blackberry 10 device, it needs to be
configured as following.

 ./configure \
    --host=arm-unknown-nto-qnx8.0.0eabi \
    --prefix=${QNX_TARGET}/armle-v7/usr \
    CC="qcc -V4.6.3,gcc_ntoarmv7le -lang-c++" \
    CXX="QCC -V4.6.3,gcc_ntoarmv7le -lang-c++" \
    LDFLAGS=-Wl,--no-undefined \
    LIBS="-lcpp"

Regards
Jiva