Thread overview
gdiplus.lib
May 17, 2005
Ben Harper
May 17, 2005
Vathix
May 17, 2005
Ben Harper
May 17, 2005
Vathix
May 17, 2005
Ben Harper
May 21, 2005
Walter
May 17, 2005
Walter
May 17, 2005
Ben Harper
May 17, 2005
Hi,
I can't get gdiplus imported.
I created the gdiplus.lib file with implib.
The following is a snippet of my D header file:

extern (Windows)
{
export
{
 Status GdiplusStartup( PULONG *token, GdiplusStartupInput *input,
GdiplusStartupOutput *output );
 void GdiplusShutdown( PULONG token );
}
}

And the linker errors:
 Error 42: Symbol Undefined _GdiplusShutdown@4
 Error 42: Symbol Undefined _GdiplusStartup@12

Any help?


May 17, 2005
On Mon, 16 May 2005 20:33:15 -0400, Ben Harper <ben@gls.co.za> wrote:

> Hi,
> I can't get gdiplus imported.
> I created the gdiplus.lib file with implib.
> The following is a snippet of my D header file:
>
> extern (Windows)
> {
> export
> {
>  Status GdiplusStartup( PULONG *token, GdiplusStartupInput *input,
> GdiplusStartupOutput *output );
>  void GdiplusShutdown( PULONG token );
> }
> }
>
> And the linker errors:
>  Error 42: Symbol Undefined _GdiplusShutdown@4
>  Error 42: Symbol Undefined _GdiplusStartup@12
>
> Any help?
>


Make gdiplus.def and add this to it:


LIBRARY 'GDIPLUS.DLL'
EXPORTS
_GdiplusShutdown@4 = GdiplusShutdown
_GdiplusStartup@12 = GdiplusStartup


Then pass it to implib instead of the dll. This is needed because dmc/dmd/link mangle stdcall/windows functions for some type safety.
May 17, 2005
"Ben Harper" <ben@gls.co.za> wrote in message news:d6be4i$2t5l$1@digitaldaemon.com...
> And the linker errors:
>  Error 42: Symbol Undefined _GdiplusShutdown@4
>  Error 42: Symbol Undefined _GdiplusStartup@12
>
> Any help?

http://www.digitalmars.com/ctg/OptlinkErrorMessages.html#symbol_undefined


May 17, 2005
Ok, but am I supposed to put together the entire library through the DEF file?

"Vathix" <vathix@dprogramming.com> wrote in message news:op.sqwaeqbhkcck4r@esi...
> On Mon, 16 May 2005 20:33:15 -0400, Ben Harper <ben@gls.co.za> wrote:
>
>> Hi,
>> I can't get gdiplus imported.
>> I created the gdiplus.lib file with implib.
>> The following is a snippet of my D header file:
>>
>> extern (Windows)
>> {
>> export
>> {
>>  Status GdiplusStartup( PULONG *token, GdiplusStartupInput *input,
>> GdiplusStartupOutput *output );
>>  void GdiplusShutdown( PULONG token );
>> }
>> }
>>
>> And the linker errors:
>>  Error 42: Symbol Undefined _GdiplusShutdown@4
>>  Error 42: Symbol Undefined _GdiplusStartup@12
>>
>> Any help?
>>
>
>
> Make gdiplus.def and add this to it:
>
>
> LIBRARY 'GDIPLUS.DLL'
> EXPORTS
> _GdiplusShutdown@4 = GdiplusShutdown
> _GdiplusStartup@12 = GdiplusStartup
>
>
> Then pass it to implib instead of the dll. This is needed because dmc/dmd/link mangle stdcall/windows functions for some type safety.


May 17, 2005
Thanks, I can see that.
If you want help reading (and writing, perhaps) COFF files, I'm willing to
write a library for them.

"Walter" <newshound@digitalmars.com> wrote in message news:d6bfpp$2udj$1@digitaldaemon.com...
>
> "Ben Harper" <ben@gls.co.za> wrote in message news:d6be4i$2t5l$1@digitaldaemon.com...
>> And the linker errors:
>>  Error 42: Symbol Undefined _GdiplusShutdown@4
>>  Error 42: Symbol Undefined _GdiplusStartup@12
>>
>> Any help?
>
> http://www.digitalmars.com/ctg/OptlinkErrorMessages.html#symbol_undefined
>
> 


May 17, 2005
On Tue, 17 May 2005 04:07:28 -0400, Ben Harper <ben@gls.co.za> wrote:

> Ok, but am I supposed to put together the entire library through the DEF
> file?

I usually add the functions as I need them, but I haven't needed to do it to a whole lot.
If someone knows of a better way, I'm interested.
May 17, 2005
Yeah, I do. Write native COFF support!
I'll do it (Walter).

"Vathix" <vathix@dprogramming.com> wrote in message news:op.sqwuznoekcck4r@esi...
> On Tue, 17 May 2005 04:07:28 -0400, Ben Harper <ben@gls.co.za> wrote:
>
>> Ok, but am I supposed to put together the entire library through the DEF file?
>
> I usually add the functions as I need them, but I haven't needed to do it
> to a whole lot.
> If someone knows of a better way, I'm interested.


May 21, 2005
"Ben Harper" <ben@gls.co.za> wrote in message news:d6capb$uhr$1@digitaldaemon.com...
> Yeah, I do. Write native COFF support!
> I'll do it (Walter).

There's already coff2omf.exe, that'll handle many cases.