Bug? Error in phobos?

BCS ao at pathlink.com
Fri Sep 21 07:48:17 PDT 2007


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. Try 
dropping the pragma (lib) and explictly linking c:\dmd\lib\WS2_32.LIB directly.

> Regan
> 





More information about the Digitalmars-d mailing list