Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
09-26-2012 09:11 AM
I'm trying to port my existing game project to BlackBerry Playbook using NDK, but unfortunately there is an issue that I don't know how to fix.
My code base requires the force include option (header file that should be included in every other source file implicitly). I used the -include GCC command for Android OS and used precompiled header for iOS.
Here on BlackBerry I can't find precompiled header option so I tried to use -include command too. For that purpose I navigated to the project's Properties -> C/C++ Build -> Settings -> Tool Settings tab and there under the QCC Compiler -> Extra Options -> Preprocessor Options (-Wp,) I added -include path.to.my.file option.
immediately after that I started to get the error message:
cc: Can't specify -P, -C, -E, -c or -S with -o and have multiple files
And sadly I have no idea how to fix this problem...
Did someone encounter the same one? Or if you know the valid approach to implement force includes, please, let me know!
Solved! Go to Solution.
10-02-2012 12:01 PM
Properties -> C/C++ Build -> Settings -> Tool Settings-> QCC Compiler ->
And there in Preprocessor section (-I [it is capital Ai not El]) specify list of folders you want the compiler to search for include files in.
10-02-2012 12:07 PM
10-02-2012 12:23 PM
Ok, sorry... misunderstood your requirements.
The easiest way is just to add one file to your sources
Then include myincludes.h wherever needed in your source files.
10-02-2012 12:39 PM