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

Posts: 10
Registered: ‎03-08-2013
My Device: BB 10
My Carrier: -
Accepted Solution

BPS error

main.o: In function `main':
C:\cocos2d-2.1beta3-x-2.1.1\Trigger Knight PlayBook\proj.blackberry\Device-Debug/..\main.cpp:34: undefined reference to `paymentservice_purchase_arguments_create'
cc: C:/bbndk-2.1.0/host/win32/x86/usr/bin/ntoarm-ld caught signal 1
Build error occurred, build is stopped
Time consumed: 11056 ms



i put this code to main() from this link


and at the line 5 (paymentservice_purchase_arguments_create) get stopped..


any idea?


Posts: 36
Registered: ‎01-16-2013
My Device: Z10
My Carrier: Telus

Re: BPS error

Did you link with the library bps or wherever paymentservice_purchase_arguments_create is?

Posts: 10
Registered: ‎03-08-2013
My Device: BB 10
My Carrier: -

Re: BPS error

[ Edited ]

after i check..

code in that link is for BB10..

and now i'm developing BB PlayBook


btw.. any sample code for BB PlayBook in-app purchase??

Posts: 38
Registered: ‎10-26-2011
My Device: BlackBerry Bold 9900
My Carrier: Rogers

Re: BPS error

You are following a recipe from BlackBerry 10, but you only have BBNDK 2.1.0 for PlayBook installed.  paymentservice_purchase_arguments_create() is a function that's new for BlackBerry 10 and did not exist on PlayBook. 


If you're developing for BlackBerry 10, install and use BlackBerry 10 Native SDK: http://developer.blackberry.com/native/download/#blackberry10


If you're developing for PlayBook, your documentation starts at: https://developer.blackberry.com/native/documentation/playbook/


At the top of the left column of every page of documentation is a "Platform" option that allows you to switch between BlackBerry 10 and PlayBook OS.