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

Regular Contributor
Posts: 52
Registered: ‎02-08-2013
My Device: Z10
My Carrier: Rogers

Cascade app and C++ static lib



I created a Cascade app and a couple of C++ static libs.  Cascade app calls APIs in C++ static lib.  Build is ok for all  of projects.  However, if I look at the build log, some options are different:


comipler options for C++ static libs:

qcc -V4.6.3,gcc_ntoarmv7le_gpp  -D_FORTIFY_SOURCE=2 -c -O0 -g -fstack-protector-strong -fPIC


compiler options for Cascade app:

qcc -Vgcc_ntoarmv7le -Wno-psabi -lang-c++ -fstack-protector-strong -mcpu=cortex-a9 -g -Wno-psabi -Wall -W -D_REENTRANT -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED  -x c++-header 


So my questions are:

(1) what difference between -V4.6.3,gcc_ntoarmv7le_gpp and -Vgcc_ntoarmv7le?

(2) Shall I use the same compiler options in proects? 

(3) How to remove -Vgcc_ntoarmv7le options in Cascades application's .pro file?

(4) shall I add -mcpu=cortex-a9 -g into my static libs build as well?