July 10, 2006
I am trying to convert the GdiPlus in D, but I keep getting this error:

E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi;
July 10, 2006
Polis wrote:
> I am trying to convert the GdiPlus in D, but I keep getting this error:
> 
> E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe
> test,,,user32+kernel32/noi;

b.. b.. but .. it's not an error o_0
it's just what dmd runs to link object files...


-- 
Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
July 10, 2006
In article <e8tq9k$1atj$1@digitaldaemon.com>, Polis says...
>
>I am trying to convert the GdiPlus in D, but I keep getting this error:
>
>E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi;

Are you sure that's an error message? To me, that message indicates that your code was successfully compiled.

jcc7
July 10, 2006
jcc7 wrote:
> In article <e8tq9k$1atj$1@digitaldaemon.com>, Polis says...
>> I am trying to convert the GdiPlus in D, but I keep getting this error:
>>
>> E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe
>> test,,,user32+kernel32/noi;
> 
> Are you sure that's an error message? To me, that message indicates that your
> code was successfully compiled.
> 
> jcc7

Try the -quiet switch to get rid of that.
July 10, 2006
>Try the -quiet switch to get rid of that.

Oh sorry it didn't copy the important part of the message:

test.obj(test)
Error 42: Symbol Undefined
__init_3std7windows7gdiplus7gdiplus8Graphics

test.obj(test)
Error 42: Symbol Undefined
_D3std7windows7gdiplus11gdiplusbase11GdiplusBase3newFkZPv

--- errorlevel 2


July 10, 2006
In article <e8tq9k$1atj$1@digitaldaemon.com>, Polis says...
>
>I am trying to convert the GdiPlus in D, but I keep getting this error:
>
>E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi;

Sorry it wasn't the full message:

E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,E:\Programmieren\DFrontend\dm\lib\gdiplus.lib+user32+kernel32/noi;


OPTLINK (R) for Win32  Release 7.50B1

Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved



test.obj(test)

Error 42: Symbol Undefined __init_3std7windows7gdiplus7gdiplus8Graphics

test.obj(test)

Error 42: Symbol Undefined _D3std7windows7gdiplus11gdiplusbase11GdiplusBase3newFkZPv

--- errorlevel 2

this was the complete message


July 10, 2006
In article <e8tu3h$1g3q$1@digitaldaemon.com>, Polis says...
>
>In article <e8tq9k$1atj$1@digitaldaemon.com>, Polis says...
>>
>>I am trying to convert the GdiPlus in D, but I keep getting this error:
>>
>>E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi;
>
>Sorry it wasn't the full message:
>
>E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,E:\Programmieren\DFrontend\dm\lib\gdiplus.lib+user32+kernel32/noi;
>
>
>OPTLINK (R) for Win32  Release 7.50B1
>
>Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
>
>
>
>test.obj(test)
>
>Error 42: Symbol Undefined __init_3std7windows7gdiplus7gdiplus8Graphics
>
>test.obj(test)
>
>Error 42: Symbol Undefined _D3std7windows7gdiplus11gdiplusbase11GdiplusBase3newFkZPv
>
>--- errorlevel 2
>
>this was the complete message

I'm still not sure what the problem is (since I don't really know what you're
trying to compile), but it's probably related to one of the problems listed on
this page:
http://www.prowiki.org/wiki4d/wiki.cgi?ErrorMessages/LinkerErrors

Are you referring to external functions in your code that aren't provided in a lib that you provide in the command line? That's my guess of what the problem is.

jcc7
July 10, 2006
In article <e8tu3h$1g3q$1@digitaldaemon.com>, Polis says...
>
>In article <e8tq9k$1atj$1@digitaldaemon.com>, Polis says...
>>
>>I am trying to convert the GdiPlus in D, but I keep getting this error:
>>
>>E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noi;
>
>Sorry it wasn't the full message:
>
>E:\Programmieren\DFrontend\dmd\bin\..\..\dm\bin\link.exe test,,,E:\Programmieren\DFrontend\dm\lib\gdiplus.lib+user32+kernel32/noi;
>
>
>OPTLINK (R) for Win32  Release 7.50B1
>
>Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
>
>
>
>test.obj(test)
>
>Error 42: Symbol Undefined __init_3std7windows7gdiplus7gdiplus8Graphics
>
>test.obj(test)
>
>Error 42: Symbol Undefined _D3std7windows7gdiplus11gdiplusbase11GdiplusBase3newFkZPv
>
>--- errorlevel 2
>
>this was the complete message

What this means is that the linker could not find the following symbols:

- (module) std.windows.gdiplus.Graphics
- void std.windows.gdiplus.gdiplubase.GdiplusBase.new()

The linker line above shows that only test.obj and gdiplus.lib are the only libraries being sent to the linker (aside from phobos, kernel32 and user32). Are you using build?  If not, then you need to throw your gdiplus D-conversion objects/libraries on the command line along with everything else.

- EricAnderton at yahoo
Top | Discussion index | About this forum | D home