02-22-2013 02:47 PM
Hi,
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?