Thread overview
Library Issues
Apr 06, 2005
Kyle Furlong
Apr 07, 2005
Regan Heath
Apr 07, 2005
Kyle Furlong
Apr 07, 2005
Regan Heath
April 06, 2005
I just started using the Mango lib from dsource.org and I am getting this when I try to compile:

C:\Documents and Settings\Administrator\My Documents\StockBot>dmd
MainWindow.d P
rogram.d WebBot.d dfl.lib phobos.lib mango_r.lib
wsock32.lib -I"C:\d\dm\include"
 -I"C:\d\dm\lib" -I"C:\d\dmd\lib"
C:\d\dmd\bin\..\..\dm\bin\link.exe
MainWindow+Program+WebBot,,,dfl.lib+phobos.li
b+mango_r.lib+wsock32.lib+user32+kernel32/noi;
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE372H Record Type 0091
 Error 1: Previous Definition Different : _WSADESCRIPTION_LEN
C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE38AH Record Type 0091
 Error 1: Previous Definition Different : _WSASYS_STATUS_LEN
C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3C2H Record Type 0091
 Error 1: Previous Definition Different : _IOCPARM_MASK
C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3D5H Record Type 0091
 Error 1: Previous Definition Different : _IOC_IN
C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3E3H Record Type 0091
 Error 1: Previous Definition Different : _FIONBIO
--- errorlevel 5

Any ideas?


April 07, 2005
On Wed, 6 Apr 2005 13:44:01 -0700, Kyle Furlong <ky220@umail.ucsb.edu> wrote:
> I just started using the Mango lib from dsource.org and I am getting this
> when I try to compile:
>
> C:\Documents and Settings\Administrator\My Documents\StockBot>dmd
> MainWindow.d P
> rogram.d WebBot.d dfl.lib phobos.lib mango_r.lib
> wsock32.lib -I"C:\d\dm\include"
>  -I"C:\d\dm\lib" -I"C:\d\dmd\lib"
> C:\d\dmd\bin\..\..\dm\bin\link.exe
> MainWindow+Program+WebBot,,,dfl.lib+phobos.li
> b+mango_r.lib+wsock32.lib+user32+kernel32/noi;
> OPTLINK (R) for Win32  Release 7.50B1
> Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
>
> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE372H Record Type 0091
>  Error 1: Previous Definition Different : _WSADESCRIPTION_LEN
> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE38AH Record Type 0091
>  Error 1: Previous Definition Different : _WSASYS_STATUS_LEN
> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3C2H Record Type 0091
>  Error 1: Previous Definition Different : _IOCPARM_MASK
> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3D5H Record Type 0091
>  Error 1: Previous Definition Different : _IOC_IN
> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3E3H Record Type 0091
>  Error 1: Previous Definition Different : _FIONBIO
> --- errorlevel 5
>
> Any ideas?

At a guess phobos.lib and mango_r.lib both define these things, so you have a double-up.
Also, why -I"C:\d\dm\include", I believe that is the include path for the DM C compiler, not the D compiler.

Regan
April 07, 2005
"Regan Heath" <regan@netwin.co.nz> wrote in message news:opsoufmkz223k2f5@nrage.netwin.co.nz...
> On Wed, 6 Apr 2005 13:44:01 -0700, Kyle Furlong <ky220@umail.ucsb.edu> wrote:
>> I just started using the Mango lib from dsource.org and I am getting this when I try to compile:
>>
>> C:\Documents and Settings\Administrator\My Documents\StockBot>dmd
>> MainWindow.d P
>> rogram.d WebBot.d dfl.lib phobos.lib mango_r.lib
>> wsock32.lib -I"C:\d\dm\include"
>>  -I"C:\d\dm\lib" -I"C:\d\dmd\lib"
>> C:\d\dmd\bin\..\..\dm\bin\link.exe
>> MainWindow+Program+WebBot,,,dfl.lib+phobos.li
>> b+mango_r.lib+wsock32.lib+user32+kernel32/noi;
>> OPTLINK (R) for Win32  Release 7.50B1
>> Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
>>
>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE372H Record Type 0091
>>  Error 1: Previous Definition Different : _WSADESCRIPTION_LEN
>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE38AH Record Type 0091
>>  Error 1: Previous Definition Different : _WSASYS_STATUS_LEN
>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3C2H Record Type 0091
>>  Error 1: Previous Definition Different : _IOCPARM_MASK
>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3D5H Record Type 0091
>>  Error 1: Previous Definition Different : _IOC_IN
>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3E3H Record Type 0091
>>  Error 1: Previous Definition Different : _FIONBIO
>> --- errorlevel 5
>>
>> Any ideas?
>
> At a guess phobos.lib and mango_r.lib both define these things, so you
> have a double-up.
> Also, why -I"C:\d\dm\include", I believe that is the include path for the
> DM C compiler, not the D compiler.
>
> Regan

Well, if phobos.lib and mango_r.lib define them, but both are necessary for the compile, how do I resolve the issue? The include was cause I was trying all sorts of things to get it to work :-P


April 07, 2005
On Wed, 6 Apr 2005 22:20:43 -0700, Kyle Furlong <ky220@umail.ucsb.edu> wrote:
> "Regan Heath" <regan@netwin.co.nz> wrote in message
> news:opsoufmkz223k2f5@nrage.netwin.co.nz...
>> On Wed, 6 Apr 2005 13:44:01 -0700, Kyle Furlong <ky220@umail.ucsb.edu>
>> wrote:
>>> I just started using the Mango lib from dsource.org and I am getting this
>>> when I try to compile:
>>>
>>> C:\Documents and Settings\Administrator\My Documents\StockBot>dmd
>>> MainWindow.d P
>>> rogram.d WebBot.d dfl.lib phobos.lib mango_r.lib
>>> wsock32.lib -I"C:\d\dm\include"
>>>  -I"C:\d\dm\lib" -I"C:\d\dmd\lib"
>>> C:\d\dmd\bin\..\..\dm\bin\link.exe
>>> MainWindow+Program+WebBot,,,dfl.lib+phobos.li
>>> b+mango_r.lib+wsock32.lib+user32+kernel32/noi;
>>> OPTLINK (R) for Win32  Release 7.50B1
>>> Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
>>>
>>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE372H Record Type 0091
>>>  Error 1: Previous Definition Different : _WSADESCRIPTION_LEN
>>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE38AH Record Type 0091
>>>  Error 1: Previous Definition Different : _WSASYS_STATUS_LEN
>>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3C2H Record Type 0091
>>>  Error 1: Previous Definition Different : _IOCPARM_MASK
>>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3D5H Record Type 0091
>>>  Error 1: Previous Definition Different : _IOC_IN
>>> C:\d\dmd\bin\..\lib\mango_r.lib(Socket)  Offset FE3E3H Record Type 0091
>>>  Error 1: Previous Definition Different : _FIONBIO
>>> --- errorlevel 5
>>>
>>> Any ideas?
>>
>> At a guess phobos.lib and mango_r.lib both define these things, so you
>> have a double-up.
>> Also, why -I"C:\d\dm\include", I believe that is the include path for the
>> DM C compiler, not the D compiler.
>>
>> Regan
>
> Well, if phobos.lib and mango_r.lib define them, but both are necessary for
> the compile, how do I resolve the issue?

I'd suggesting posting your problem here also:
http://www.dsource.org/forums/viewforum.php?f=5

as Kris will undoubtable be able to confirm/deny my suspician and probably give advice on how to solve it.
I would guess that you are going to need to re-compile one or the other library without the duplicate symbols.

> The include was cause I was trying
> all sorts of things to get it to work :-P

I suspected that might be it.

Regan