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
dromedary
Posts: 4
Registered: ‎10-06-2012
My Device: cuenicks
My Carrier: eventphone

qcc doesn't understand -std=c99, causes issues with autotools (./configure)

[ Edited ]

The documented solution is to use -Wl to pass the param to the compiler, but this doesn't help much when trying to compile a library that uses autotools.

 

Adding -Wc,-std=c99 to CFLAGS causes configure's c99 tests to pass, which causes the Makefile to pass -std=c99 to qcc, which chokes.

 

Is there a clean way to fix this? I wish to avoid having to manually modify the configure file or the Makefile every time I want to build an open-source library.

 

Any chance the next version of qcc could understand -std?

 

Are there any reasons why it shouldn't? Is qcc open-source and does it accept patches?

 

Please use plain text.
New Developer
mcmordie
Posts: 50
Registered: ‎01-22-2009
My Device: Z10
My Carrier: Rogers

Re: qcc doesn't understand -std=c99, causes issues with autotools (./configure)

A little late, but I was looking for the answer to this too.  I found it here:

 

http://community.qnx.com/sf/discussion/do/listPosts/projects.community/discussion.qnx_momentics_comm...

 

Just add:

 

QMAKE_CFLAGS += -Wc,-std=c99

to your .pro file.

 

Probably too late to help you, but others may see this.

 

 

Please use plain text.