Member
Join Date: Jan 2006
|
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 |
Member
Join Date: Jan 2006
|
I got the output.
I forgot to link the framework. So added "-framework myFramework" option to makefile and it worked. |
quote |
9" monochrome
Join Date: May 2004
Location: 🇦🇺
|
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. |
quote |
‽
|
Quote:
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 |
9" monochrome
Join Date: May 2004
Location: 🇦🇺
|
Quote:
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. |
|
quote |
‽
|
Yep, which is why I try to help whenever possible. Ask mooty.
|
quote |
Veteran Member
Join Date: May 2004
|
Personally, I blame chucker for not bumping this thread as necessary until a solution was reached by group consensus.
Bad chucker. |
quote |
‽
|
|
quote |
Veteran Member
Join Date: May 2004
|
|
quote |
Posting Rules | Navigation |
|
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 |