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
MrFlexile
Posts: 8
Registered: ‎09-26-2012
My Device: BlackBerry Playbook

Re: Force Include problem

No, you can only put -include command under the Preprocessor Options (-Wp,). If you put it under the QCC Options then it will be "cc: unknown option: '-include'" error
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Force Include problem

qcc is not gcc, then this option is not supported by qcc.

New Contributor
MrFlexile
Posts: 8
Registered: ‎09-26-2012
My Device: BlackBerry Playbook

Re: Force Include problem

Yeah... i thought so too and that's why I ask for the solution here. Maybe there is some other way to solve this problem besides inserting the #include everywhere manually.
Developer
mreed
Posts: 1,041
Registered: ‎07-16-2008
My Device: ಠ_ಠ

Re: Force Include problem

-include is a preprocessor command. -Wp is used to pass commands to the preprocessor. I'm guessing since the error is about multiple files, it doesn't like that there is a space. Try "-Wp,-include -Wp,path.to.my.file" ?? Or use quotes? Escape the space?

 

http://www.qnx.com/developers/docs/6.3.0SP3/neutrino/utilities/q/qcc.html

http://hg.instantbird.org/instantbird/rev/66d5b093e2e1

New Contributor
MrFlexile
Posts: 8
Registered: ‎09-26-2012
My Device: BlackBerry Playbook

Re: Force Include problem

Oh Gosh! Thank you. Removing the space after -include option did the trick!