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
Developer
Posts: 160
Registered: ‎01-27-2012
My Device: Playbook
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"
Trusted Contributor
Posts: 140
Registered: ‎11-23-2010
My Device: Torch 9800

Re: DataSource - undefined reference

[ Edited ]

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

Developer
Posts: 160
Registered: ‎01-27-2012
My Device: Playbook

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"
New Contributor
Posts: 2
Registered: ‎01-14-2013
My Device: none

Re: DataSource - undefined reference

Why is that so obvious?