XCode newbie: Help with plugins and linking
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.