Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conflicting declaration _mbstate_t in _types.h



Hi all,

Ok, I fixed this issue by altering my include paths. Basically I needed to have /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/ppc as my path. For some reason I thought XCode might have already known this. Ahem anyway... onwards and upwards...

Does anyone know how to define a bundle entry point for a pluggin? I have tryed the following:

#ifdef MAC_ENV
	#define PluginMain main
#endif

#define DllExport extern "C" _declspec(dllexport)

DllExport SPAPI SPErr PluginMain(char* caller, char* selector, void* message);
DllExport SPAPI SPErr PluginMain(char* caller, char* selector, void* message)
{
SPErr error = kNoErr;
return error;
}


When I compile this I am getting "Error: expected constructor, destructor or type conversion before '(' token. However looks ok to me. Also how do I tell the linker to use this as the entry point?

Thanks in advance,

Chris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.