• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
XCode newbie: Help with plugins and linking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode newbie: Help with plugins and linking


  • Subject: XCode newbie: Help with plugins and linking
  • From: Mark <email@hidden>
  • Date: Sat, 8 May 2004 17:40:36 +1200

I am making an plugin based application where the plugin has to link
to exported application symbols.
In CW (5.3), I make the CFM version usingthe make stub library option
and a stub is created.
The plugin project then imports the stub.
How do I do something similar in XCode?

I can't make a stub out of the application executable, strip (using
-c option) complains.

To build the plugin, I need it to link against the application or a
stub/dynamic library.

Does the library/App have to go in specific directories?
I have tried adding library search paths, that does not work.

A test plugin uses this:

#ifdef __cplusplus
//extern "C" {
#endif
extern void MultiplyRect(Rect *arect, float m);
#ifdef __cplusplus
//}
#endif

void Test();

void Test() {
	Rect a;
	SetRect(&a, 5, 5, 50, 50);
	MultiplyRect(&a, (float) 0.5);
	WindowRef window;
	CreateNewWindow(kFloatingWindowClass, 0, &a, &window);
	};


The linker complains about an undefined symbol : MultiplyRect (&
_MultiplyRect).
I have removed the '//' in front of 'extern "C"'. Still complains.
The application MultiplyRect (& _MultiplyRect) symbol DOES exist and
is exported.

Help!
Mark
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: XCode newbie: Help with plugins and linking
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: 10.2.8.sdk weirdness
  • Next by Date: Build rules
  • Previous by thread: SharedCaches
  • Next by thread: Re: XCode newbie: Help with plugins and linking
  • Index(es):
    • Date
    • Thread