Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LDataBrowser in Xcode UB

5 views
Skip to first unread message

bria...@gmail.com

unread,
Jul 2, 2007, 4:58:02 PM7/2/07
to
I am trying to use PowerPlant in Xcode. One problem I have is with
LDataBrowser I get a link error:

__ZThn136_N12LDataBrowser11ObeyCommandElPv
__ZThn136_N12LDataBrowser12DontBeTargetEv
__ZThn136_N12LDataBrowser14HandleKeyPressERK11EventRecord
__ZThn136_N12LDataBrowser17FindCommandStatusElRhS0_RtPh
__ZThn136_N12LDataBrowser8BeTargetEv
__ZThn136_N12LDataBrowserD0Ev
__ZThn136_N12LDataBrowserD1Ev

Although c++flit indicates that the object code exists.

% nm -a libPowerPlantD.a | grep 6_N12LDataBrowser11ObeyCommandE | c+
+filt
000029be S non-virtual thunk to LDataBrowser::ObeyCommand(long, void*)
% echo __ZThn136_N12LDataBrowserD0Ev | c++filt
non-virtual thunk to LDataBrowser::ObeyCommand(long, void*)

Although, I have not see "non-virtual thunk to ". My usage of
LDataBrowser is below:

class MDLDataBrowserClient {
public:
virtual Boolean DLDBCompareItems(
const PP_PowerPlant::LDataBrowserItem * inItemOne,
const PP_PowerPlant::LDataBrowserItem * inItemTwo,
DataBrowserPropertyID inSortProperty);
};

class CDLDataBrowser : public PP_PowerPlant::LDataBrowser {
MDLDataBrowserClient* mClient;

public:
enum { class_ID = FOUR_CHAR_CODE('DLDB') };

CDLDataBrowser(PP_PowerPlant::LStream* inStream );
virtual ~CDLDataBrowser();
virtual void SetClient(MDLDataBrowserClient*);

Boolean mAllowSort;

void FinishCreateSelf();

void ItemNotification(PP_PowerPlant::LDataBrowserItem* inItem,
DataBrowserItemNotification inMessage);
Boolean AllowBeTarget(PP_PowerPlant::LCommander* inNewTarget);
Boolean AllowDontBeTarget(PP_PowerPlant::LCommander* inNewTarget);


virtual Boolean CompareItems(
const PP_PowerPlant::LDataBrowserItem * inItemOne,
const PP_PowerPlant::LDataBrowserItem * inItemTwo,
DataBrowserPropertyID inSortProperty);
};

Any ideas why this will not link?

Regards, Brian Ray

Michael Fielitz

unread,
Jul 3, 2007, 8:44:00 AM7/3/07
to
Hello Brian,


bria...@gmail.com <bria...@gmail.com> wrote:

> I am trying to use PowerPlant in Xcode. One problem I have is with
> LDataBrowser I get a link error:
>
> __ZThn136_N12LDataBrowser11ObeyCommandElPv
>

> Although c++flit indicates that the object code exists.

I once stumbled upon LDataBrowser too. Then I realized, that that is an
old Carbonlib demo app as well as some kind of experimental PowerPlant
class (At least in any of the last released versions?). I decided to
exclude it before getting even more confused. I bet things are way more
easier in Cocoa now, but require some rewriting code/redesign work,
etc...
Sorry for not being of much help on this topic.

Michael

0 new messages