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: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T
Accepted Solution

Q_DECL_EXPORT error issue

I upgraded to 10.2 Gold through the Native SDK.

 

QNX® Momentics® IDE for BlackBerry® 10 Native SDK

Version: 10.2.1
Build id: v201308081807

 

When I Build the application and try to debug it in the Simulator (BB10_2_0X.1155), I run into the error at the main 

Q_DECL_EXPORT int main(int argc, char **argv)
{
    Application app(argc, argv);

    // Create the Application UI object, this is where the main.qml file
    // is loaded and the application scene is set.
    new ApplicationUI(&app);

    // Enter the application main event loop.
    return Application::exec();
}

 

 If I hit Play to continue, I get all sorts of library errors and the app comes up, but the debug console isn't showing any debug information.

 

I created the application new after upgrading to 10.2.  And I get the same issue on just a simple app page with some text fields.  There isn't much to error out on.

 

I've seen some other posts about the error, but they were about the previous version, which I assumed 10.2 Gold would have fixed.

 

What am I missing?

Or do I need to uninstall the SDK and start from scratch?

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment
Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

Re: Q_DECL_EXPORT error issue

Well, completely uninstalling everything and then reinstalling didn't help.

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment
Developer
Posts: 265
Registered: ‎01-02-2011
My Device: Z30, PlayBook
My Carrier: AT&T

Re: Q_DECL_EXPORT error issue

Just use Run instead of Debug. 

I can see the console output in Run mode.

_________________
Meetup for BlackBerry 10
Meetup Search Tool - not available at the moment