In CW if you use 'export pragmas' you must enable this setting in the linker settings pane otherwise those pragmas will be ignored. Not sure how to do this in gdb...
a
At 2:00 PM -0400 10/3/05, Denis @ TheOffice wrote:
>I don't if that would apply in your case, but any way I developed a twain pluggin.
>In my case the point of entry is : DS_Entry
>
>I don't think the DllExport means the same in Mac
>I know there is a different way, but I don't remember at this time.
>I let you know once I found it.
>
>#pragma export on
>TW_UINT16 DS_Entry(PTW_IDENTITY pSrc, TW_UINT32 DG, TW_UINT16 DAT,
> TW_UINT16 MSG, TW_MEMREF pData)
>{
>...
>}
>#pragma export off
>
>Also I don't think you can call it main, have you try another name?
>
>
>Denis
>
>
>
>
>----- Original Message -----
>From: "Chris Ulliott" <email@hidden>
>To: <email@hidden>
>Sent: Monday, October 03, 2005 12:43 PM
>Subject: 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:
>>
>> This email sent to email@hidden
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Carbon-dev mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>
>This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden