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 Developer
Posts: 91
Registered: ‎01-23-2009
My Device: Z10
My Carrier: klarmobil

How to use C-Code in Cascades Project?

I would like to use come c-code but if I add it to my project I can't compile it anymore. Even if I create a new Cascades project as soon as I add single *.c file (even empty one) it breakes.

 

make[2]: *** [o.le-v7-g/.obj/start.o] Error 1
make[1]: *** [debug] Error 2
make: *** [Device-Debug] Error 2

 

What must be done?

Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to use C-Code in Cascades Project?

take a look into the console above the "Error 1", usually there is a detailed error message.

most likely the c code needs some header files to compile.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 91
Registered: ‎01-23-2009
My Device: Z10
My Carrier: klarmobil

Re: How to use C-Code in Cascades Project?

I thought about it if adding existing code. But breaking it down to a new project where you add a .c and .h file with lets say one empty function ... I don't see what header files I should add additionally.

Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to use C-Code in Cascades Project?

Try to add hpp/cpp files, can you do that?
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 91
Registered: ‎01-23-2009
My Device: Z10
My Carrier: klarmobil

Re: How to use C-Code in Cascades Project?

Yes of course.

I assume the compiler does get it wrong and this cause the errors but don't see where this is adjusted. (like compile this files this way and the others the other way)

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to use C-Code in Cascades Project?

I really don't like the word 'assume' when usually the tools are trying really hard to tell you what the problem is.

 

As Simon said there will be an error line earlier in the console output (the majority of times) please post it here and we may be able to help.

 


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to use C-Code in Cascades Project?

I've said this in the past as well, having worked on ARM compilers, linkers and debuggers in the past it will very rarely be a bug in the tools.  Yes of course all software will have bugs but in the case of these mature tools they will be extremely rare corner cases as otherwise thousands of developers would be up in arms.

 

99% of the time it is something you have done or not done. :smileyhappy:


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 91
Registered: ‎01-23-2009
My Device: Z10
My Carrier: klarmobil

Re: How to use C-Code in Cascades Project?

I'm not saying there is a bug. I would hardly believe it myself since there are surelly many people having gone this way before. I just looking for the little peace of information (like perhaps special arguments or flags or include) which is needed if you combine these two languages as it is the first time for me.

 

But well here is the complete console output if I try to compile after a clean: (looks odd to me)

 

13:48:28 **** Build of configuration Device-Debug for project PlayShogi ****
make -j3 Device-Debug
make -C .//translations -f Makefile update
cd arm && /Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/qmake -spec blackberry-armv7le-qcc ../PlayShogi.pro CONFIG+=debug_and_release CONFIG+=device
make[1]: Entering directory `/Users/georg/Work/BlackBerryNative/PlayShogi/translations'
/Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/lupdate PlayShogi.pro
Updating 'PlayShogi.ts'...
    Found 3 source text(s) (0 new and 3 already existing)
make[1]: Leaving directory `/Users/georg/Work/BlackBerryNative/PlayShogi/translations'
make -C .//translations -f Makefile release
make[1]: Entering directory `/Users/georg/Work/BlackBerryNative/PlayShogi/translations'
/Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/lrelease PlayShogi.pro
Updating '/Users/georg/Work/BlackBerryNative/PlayShogi/translations/PlayShogi.qm'...
    Generated 0 translation(s) (0 finished and 0 unfinished)
    Ignored 3 untranslated source text(s)
make[1]: Leaving directory `/Users/georg/Work/BlackBerryNative/PlayShogi/translations'
make -C ./arm -f Makefile debug
make[1]: Entering directory `/Users/georg/Work/BlackBerryNative/PlayShogi/arm'
make -f Makefile.Debug
make[2]: Entering directory `/Users/georg/Work/BlackBerryNative/PlayShogi/arm'
/Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/moc -DQT_NO_IMPORT_QT47_QML -DQ_OS_BLACKBERRY -DQT_DECLARATIVE_DEBUG -DQT_DECLARATIVE_LIB -DQT_CORE_LIB -DQT_SHARED -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../PlayShogi -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4 -I../bonanza -I../src -Io.le-v7-g/.moc -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -D__QNXNTO__ ../src/applicationui.hpp -o o.le-v7-g/.moc/moc_applicationui.cpp
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:45:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:47,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
qcc -Vgcc_ntoarmv7le -Wno-psabi -lang-c++ -fstack-protector -fstack-protector-all -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 -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../PlayShogi -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4 -I../bonanza -I../src -Io.le-v7-g/.moc -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -x c++-header -c ../precompiled.h -o o.le-v7-g/.obj/PlayShogi.gch/c++
                 from ../precompiled.h:3:
qcc -Vgcc_ntoarmv7le -Wno-psabi -fstack-protector -fstack-protector-all -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 -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/share/qt4/mkspecs/blackberry-armv7le-qcc -I../../PlayShogi -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtDeclarative -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4 -I../bonanza -I../src -Io.le-v7-g/.moc -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include -I/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/freetype2 -I. -x c-header -c ../precompiled.h -o o.le-v7-g/.obj/PlayShogi.gch/c
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h:51:1: warning: return type defaults to 'int' [-Wreturn-type]
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h: In function 'QT_MODULE':
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h:54:1: error: unknown type name 'namespace'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h:58:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h:1799:1: error: expected declaration specifiers before 'Q_DECLARE_OPERATORS_FOR_FLAGS'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h:1820:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h:1820:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QInternal'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qnamespace.h:1875:2: error: expected declaration specifiers before ';' token
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:47:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:51:1: error: expected declaration specifiers before 'QT_MODULE'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:55:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:143:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:146:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:217:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:249:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:250:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:251:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:252:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:253:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:256:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:256:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QGenericArgument'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:267:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:269:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:269:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QGenericReturnArgument'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:275:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:277:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:284:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:285:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:292:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:295:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:302:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:305:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
make[2]: Leaving directory `/Users/georg/Work/BlackBerryNative/PlayShogi/arm'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:47:0,
make[1]: Leaving directory `/Users/georg/Work/BlackBerryNative/PlayShogi/arm'
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:474:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:476:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:483:5: error: unknown type name 'QMetaObject'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:486:5: error: expected specifier-qualifier-list before 'typedef'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:478:1: warning: empty declaration [enabled by default]
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:491:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:494:1: error: unknown type name 'QMetaObject'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:494:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:45:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:51:1: error: expected declaration specifiers before 'QT_MODULE'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:57:1: error: expected specifier-qualifier-list before 'public'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:55:1: warning: empty declaration [enabled by default]
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:72:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:72:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QChar'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:367:1: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:369:1: error: expected declaration specifiers before 'Q_DECLARE_TYPEINFO'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:371:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:376:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:378:1: error: unknown type name 'QChar'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:378:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:380:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:381:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:382:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:383:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:384:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:385:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:387:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:389:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:392:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:392:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:393:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:393:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:394:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:394:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:395:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:395:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:396:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:396:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:397:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:397:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:400:1: error: unknown type name 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:400:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:401:1: error: unknown type name 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qchar.h:401:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:46:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:45,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbasicatomic.h:51:1: error: expected declaration specifiers before 'QT_MODULE'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbasicatomic.h:128:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbasicatomic.h:130:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbasicatomic.h:211:2: error: expected declaration specifiers before ';' token
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv7.h:56:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_arm.h:53,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_arch.h:56,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbasicatomic.h:227,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:45,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:51:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:51:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:53:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:53:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:58:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:58:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:60:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:60:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:65:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:65:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:67:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:67:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:72:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:72:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:74:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:74:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:79:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:82:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:88:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:91:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:97:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:100:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:113:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:113:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:131:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:131:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:149:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:149:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:168:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:186:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:207:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:227:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:246:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:418:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:418:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:425:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:425:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:431:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:431:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:439:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:446:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:452:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:461:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:468:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:474:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:482:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:490:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:497:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:506:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:514:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:521:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:530:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:538:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv6.h:545:1: error: expected declaration specifiers before 'template'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_arm.h:53:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_arch.h:56,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbasicatomic.h:227,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:45,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic_armv7.h:57:1: error: expected identifier or '(' before string constant
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:45:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:121:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:124:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:186:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:194:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qatomic.h:213:1: error: expected declaration specifiers before 'template'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:29:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:31,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:55:19: error: storage class specified for parameter 'errno_t'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:77:28: error: storage class specified for parameter 'memchr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:78:28: error: storage class specified for parameter 'strchr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:79:28: error: storage class specified for parameter 'strpbrk'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:80:28: error: storage class specified for parameter 'strrchr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:81:28: error: storage class specified for parameter 'strstr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:83:14: error: storage class specified for parameter 'memcmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:84:14: error: storage class specified for parameter 'memcpy'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:85:14: error: storage class specified for parameter 'memmove'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:88:14: error: storage class specified for parameter 'memset'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:90:14: error: storage class specified for parameter 'strcat'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:91:12: error: storage class specified for parameter 'strcmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:92:12: error: storage class specified for parameter 'strcoll'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:93:15: error: storage class specified for parameter 'strxfrm'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:94:14: error: storage class specified for parameter 'strcpy'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:95:15: error: storage class specified for parameter 'strcspn'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:96:14: error: storage class specified for parameter 'strerror'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:97:15: error: storage class specified for parameter 'strlen'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:98:15: error: storage class specified for parameter 'strnlen'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:99:14: error: storage class specified for parameter 'strncat'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:100:12: error: storage class specified for parameter 'strncmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:101:14: error: storage class specified for parameter 'strncpy'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:102:15: error: storage class specified for parameter 'strspn'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:103:14: error: storage class specified for parameter 'strtok'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:107:14: error: storage class specified for parameter 'strsignal'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:110:14: error: storage class specified for parameter 'strtok_r'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:114:12: error: storage class specified for parameter 'strerror_r'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:118:14: error: storage class specified for parameter 'memccpy'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:119:14: error: storage class specified for parameter 'strdup'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:127:21: error: storage class specified for parameter 'memcpyv'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:29:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:31,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:128:12: error: storage class specified for parameter 'memicmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:129:12: error: storage class specified for parameter '_memicmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:130:12: error: storage class specified for parameter 'strcmpi'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:131:14: error: storage class specified for parameter '_strdup'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:132:12: error: storage class specified for parameter 'stricmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:133:12: error: storage class specified for parameter '_stricmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:134:14: error: storage class specified for parameter 'strlwr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:135:14: error: storage class specified for parameter '_strlwr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:136:12: error: storage class specified for parameter 'strnicmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:137:12: error: storage class specified for parameter '_strnicmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:138:14: error: storage class specified for parameter 'strnset'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:139:14: error: storage class specified for parameter 'strrev'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:140:14: error: storage class specified for parameter 'strset'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:141:14: error: storage class specified for parameter 'strupr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:142:14: error: storage class specified for parameter '_strupr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:146:13: error: storage class specified for parameter '__strerror'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:147:12: error: storage class specified for parameter 'straddstr'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:148:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'memset_s'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:153:14: error: storage class specified for parameter 'strsep'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/string.h:31:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:61:13: error: storage class specified for parameter 'bcmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:62:13: error: storage class specified for parameter 'bcopy'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:63:13: error: storage class specified for parameter 'bzero'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:64:13: error: storage class specified for parameter 'ffs'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:65:14: error: storage class specified for parameter 'index'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:66:14: error: storage class specified for parameter 'rindex'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:67:13: error: storage class specified for parameter 'strcasecmp'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/strings.h:68:13: error: storage class specified for parameter 'strncasecmp'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:49:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/stdarg.h:34:25: error: storage class specified for parameter 'va_list'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:46:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:71:1: error: expected declaration specifiers before 'QT_MODULE'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:79:1: error: unknown type name 'uint'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:80:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:82:1: error: unknown type name 'uint'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:82:39: error: unknown type name 'uint'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:92:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:93:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:95:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:96:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:97:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:98:51: warning: type defaults to 'int' in declaration of 'QByteArray' [-Wimplicit-int]
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:98:62: error: expected ';', ',' or ')' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:101:57: error: unknown type name 'uint'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:106:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:107:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:110:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:111:1: error: expected declaration specifiers before 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:128:1: error: unknown type name 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:128:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qChecksum'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:130:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:131:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:131:7: error: redefinition of parameter 'QString'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobjectdefs.h:55:7: note: previous definition of 'QString' was here
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:132:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:133:1: error: expected declaration specifiers before 'template'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:135:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:135:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:398:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:400:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:401:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:402:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:413:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:415:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:417:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:421:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:421:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:424:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:426:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:429:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:431:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:433:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:435:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:437:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:437:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:439:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:446:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:449:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:452:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:455:1: error: unknown type name 'class'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:455:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QByteRef'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:487:2: error: expected declaration specifiers before ';' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:489:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:491:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:493:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:495:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:497:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:499:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:501:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:503:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:505:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:507:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:509:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:511:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:513:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:515:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:517:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:519:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:521:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:523:1: error: unknown type name 'QBool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:523:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:525:1: error: unknown type name 'QBool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:525:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:527:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:527:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:529:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:529:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:531:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:531:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:533:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:533:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:535:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:535:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:537:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:537:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '!=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:539:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:539:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:541:2: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:541:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:543:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:543:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:545:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:545:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:547:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:547:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:549:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:549:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:551:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:551:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:553:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:553:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:555:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:555:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:557:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:557:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:559:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:559:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:561:1: error: unknown type name 'bool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:561:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '>=' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:564:1: error: unknown type name 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:564:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:566:1: error: unknown type name 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:566:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:568:1: error: unknown type name 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:568:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:570:1: error: unknown type name 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:570:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:572:1: error: unknown type name 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:572:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '+' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:575:1: error: unknown type name 'QBool'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:575:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:577:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:579:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:581:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:584:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:586:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:588:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:590:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:592:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:597:1: error: unknown type name 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:597:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:598:1: error: unknown type name 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:598:27: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:602:1: error: unknown type name 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:602:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qCompress'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:603:1: error: unknown type name 'Q_CORE_EXPORT'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:603:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qUncompress'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:604:1: error: unknown type name 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:604:35: warning: type defaults to 'int' in declaration of 'QByteArray' [-Wimplicit-int]
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:604:45: error: expected ';', ',' or ')' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:606:1: error: unknown type name 'QByteArray'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:606:37: warning: type defaults to 'int' in declaration of 'QByteArray' [-Wimplicit-int]
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:606:47: error: expected ';', ',' or ')' before '&' token
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:610:1: error: expected declaration specifiers before 'Q_DECLARE_TYPEINFO'
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qbytearray.h:611:1: error: expected declaration specifiers before 'Q_DECLARE_SHARED'
In file included from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qobject.h:48:0,
                 from /Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/QObject:1,
                 from ../precompiled.h:3:
/Applications/Momentics.app/target_10_2_0_1155/qnx6/usr/include/qt4/QtCore/qstring.h:54:20: fatal error: string: No such file or directory
compilation terminated.
cc: /Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0eabi/4.6.3/cc1 error 1
make[2]: *** [o.le-v7-g/.obj/PlayShogi.gch/c] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [debug] Error 2
make: *** [Device-Debug] Error 2

13:48:35 Build Finished (took 7s.265ms)

Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to use C-Code in Cascades Project?

Okay it looks like you are not telling the compiler to expect C code.

 

My guess is you are not using extern "C", here's an example...

 

ctest.h

#ifndef CTEST_H_
#define CTEST_H_

#ifdef __cplusplus
extern "C" {
#endif

    int callMe(void);

#ifdef __cplusplus
}
#endif


#endif /* CTEST_H_ */

 ctest.c

#include <stdio.h>
#include <stdlib.h>

#include "ctest.h"

int callMe(void) {

	printf("C function called");

	return 10;

}

 You should then be able to call the 'callMe' function from C++.


If you've been helped click on Like Button, if you've been saved buy the app. :smileyhappy:

Developer of stokLocker, Sympatico and Super Sentences.
New Developer
Posts: 91
Registered: ‎01-23-2009
My Device: Z10
My Carrier: klarmobil

Re: How to use C-Code in Cascades Project?

Thanks, but the result is the same as before.

Does it work in your Momentics?