User Name
Password
AppleNova Forums » Programmer's Nook »

Accessing carbon framework from XPCOM component


Register Members List Calendar Search FAQ Posting Guidelines
Accessing carbon framework from XPCOM component
Thread Tools
kate
Member
 
Join Date: Jan 2006
 
2006-09-16, 05:00

Hi,
I created a new project, XCode > Carbon Framework > MyTestProj.
I just wrote single function sayHello() and build the framework.

In my xpcom component cpp code, I included the framework heaader file and
called sayHello() in the constructor.

When I tried to build it with mozilla Iam getting linker errors.

/usr/bin/ld: Undefined symbols:
sayHello()
collect2: ld returned 1 exit status

Did I miss out something?
How to call framework methods in xpcom component?
  quote
kate
Member
 
Join Date: Jan 2006
 
2006-09-18, 01:17

I got the output.
I forgot to link the framework.
So added "-framework myFramework" option to makefile and it worked.
  quote
Mac+
9" monochrome
 
Join Date: May 2004
Location: 🇦🇺
 
2006-09-18, 01:32

I'm glad it worked for you kate.

I'm not much help with this sort of thing, but I am surprised this was left untouched by the community here. Normally they (we?) are quite a helpful bunch.

All I want is a simple life
twitter
  quote
chucker
‽
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-09-18, 01:43

Quote:
Originally Posted by Mac+ View Post
I'm not much help with this sort of thing, but I am surprised this was left untouched by the community here. Normally they (we?) are quite a helpful bunch.
Having worked on and documented some of XPCOM's code many a year ago, I stay far away from it these days. Plus, I'm not particularly well-versed with Carbon.

So, such topics do pique my curiosity, but I can't be of much help.

It's not a matter of not being "a helpful bunch"; one merely cannot be knowledgeable of everything. Sorry!
  quote
Mac+
9" monochrome
 
Join Date: May 2004
Location: 🇦🇺
 
2006-09-18, 07:14

Quote:
Originally Posted by chucker View Post
Having worked on and documented some of XPCOM's code many a year ago, I stay far away from it these days. Plus, I'm not particularly well-versed with Carbon.

So, such topics do pique my curiosity, but I can't be of much help.

It's not a matter of not being "a helpful bunch"; one merely cannot be knowledgeable of everything. Sorry!
One wasn't merely referring to you specifically chucker ... so no apology needed.

However, that first sentence may have been of some solace to kate in the first place - which may have opened up a dialogue from which something could have come ... perhaps with others chiming in. But eh - no biggie. I just felt it was a pity for her, as I remember when I tried to plod my way through programming classes roadbloacks due to simple oversights which you dont have the skill to pick up on can be incredibly frustrating.

All I want is a simple life
twitter
  quote
chucker
‽
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-09-18, 13:32

Quote:
Originally Posted by Mac+ View Post
I just felt it was a pity for her, as I remember when I tried to plod my way through programming classes roadbloacks due to simple oversights which you dont have the skill to pick up on can be incredibly frustrating.
Yep, which is why I try to help whenever possible. Ask mooty.
  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2006-09-18, 14:29

Personally, I blame chucker for not bumping this thread as necessary until a solution was reached by group consensus.

Bad chucker.
  quote
chucker
‽
 
Join Date: May 2004
Location: near Bremen, Germany
Send a message via ICQ to chucker Send a message via AIM to chucker Send a message via MSN to chucker Send a message via Yahoo to chucker Send a message via Skype™ to chucker 
2006-09-18, 14:40

  quote
Kickaha
Veteran Member
 
Join Date: May 2004
 
2006-09-18, 14:41

  quote
Posting Rules Navigation
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Post Reply

Forum Jump
Thread Tools
Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in calling XPCOM Component from JavaScript kate Programmer's Nook 0 2006-08-03 01:43
Accessing C functions from Java kate Programmer's Nook 2 2006-04-28 00:41


« Previous Thread | Next Thread »

All times are GMT -5. The time now is 20:18.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2024, AppleNova