Bug? Error in phobos?

Regan Heath regan at netmail.co.nz
Fri Sep 21 10:43:13 PDT 2007


BCS wrote:
> 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.

I get the impression Tom tried it and it gives the same error for him.

I'll grab a fresh dmd and give it a go but I wont hold my breath.

Regan



More information about the Digitalmars-d mailing list