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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Developer
Dredvard
Posts: 154
Registered: ‎01-27-2012
My Carrier: Rogers
Accepted Solution

DataSource - undefined reference

I'm trying to implement a DataSource as described here:

 

https://developer.blackberry.com/cascades/documentation/device_platform/data_access/using_data_sourc...

 

I've included:

 

#include <bb/data/DataSource>

 

And in my main app I included:

    bb::data::smileyvery-happy:ataSource::registerQmlTypes();

 

However, on compiling I receive the following error:

 

C:\Users\ndk-10.0.6-workspace\carosel_2\arm/../src/Carousel.cpp:40: undefined reference to `bb::data::smileyvery-happy:ataSource::registerQmlTypes()'

 

How do I correct this?

---
If you find my post helpful please "like" it and "accept as a solution"
Please use plain text.
Trusted Contributor
AllSystemGo
Posts: 137
Registered: ‎11-23-2010
My Carrier: Rogers

Re: DataSource - undefined reference

[ Edited ]

Did you add the LIBS += -lbbdata in your .pro file?

Please use plain text.
Developer
Dredvard
Posts: 154
Registered: ‎01-27-2012
My Carrier: Rogers

Re: DataSource - undefined reference

Thanks.  Can't believe I missed that obvious part on the API page.

---
If you find my post helpful please "like" it and "accept as a solution"
Please use plain text.
New Contributor
lucassouza1
Posts: 2
Registered: ‎01-14-2013
My Carrier: 3188060029

Re: DataSource - undefined reference

Why is that so obvious?

Please use plain text.