Bug? Error in phobos?

BCS BCS at pathlink.com
Fri Sep 21 09:57:39 PDT 2007


Regan Heath wrote:
> BCS wrote:
> 
>> Reply to Regan,
>>
>>
>>>> Error 1: Previous Definition Different : _ntohl at 4
>>>> --- errorlevel 1
>>>> Anyone know what this means?
>>>>
>>> No-one??  This bug is particularly annoying because it prevents me
>>> from calling ntohl, ntohs etc from within a class method.  In the end
>>> I just wrote my own ntohl functin and called that.
>>>
>>
>> I don't known why your getting it, but you must have more than one 
>> ntohl defined. The linker is finding this so I expect that one is in a 
>> lib. 
> 
> 
> That's what I thought might be happening.
> 
>> Try dropping the pragma (lib) and explictly linking 
>> c:\dmd\lib\WS2_32.LIB directly.
> 
> 
> No such luck :(

long shoot: grab a fresh dmd.zip, replace ws2_32.lib. It might be bad.



More information about the Digitalmars-d mailing list