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
Posts: 2
Registered: ‎08-01-2012
My Device: blackberry 10 alpha
My Carrier: blackberry
Accepted Solution

compilation problem with projects references

hi,

 

I'm developping a framework and i try to port it to BB10.

 

I've four static libraries having references to each others.

 

I've create a test project using the four libraries,  and checked in references window my four libraries (in QNX IDE : project properties / C/C++ General /Paths ad Symbols / references ).

 

When i compile i have many "undefined reference to "....." error. I know I can change the link order but it's not enought to resolve some "circular" linking problems.

 

I already had this problem when i compiled the framwork for Android, but in the makefile I was able to link several time with the same library  (exemple :

Project4.a
Project1.a

Project3.a
Project1.a
Project2.a
)
But i can't or i don't know how I can do it in QNX IDE.

 

Any idee how can i do to link correctly all my projects plz ?

 

thx a lot for you help.

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: compilation problem with projects references

You should put all your libraries to be used by linker here:

Project's Properties->C/C++ Build/QCC Linker->Libraries->Libraries (-l)

Highlighted
New Contributor
Posts: 2
Registered: ‎08-01-2012
My Device: blackberry 10 alpha
My Carrier: blackberry

Re: compilation problem with projects references

thank a lot Smiley Happy It work fine