Linking Error (WS2_32.LIB)

Nick Sabalausky a at a.a
Fri Nov 11 04:19:04 PST 2011


"Walter Bright" <newshound2 at digitalmars.com> wrote in message 
news:j9i0c5$mlb$1 at digitalmars.com...
> On 11/10/2011 5:10 PM, Nick Sabalausky wrote:
>> Isn't this a bug that the compiler accepted it and the error didn't get
>> raised until it got all the way to the linker? Doesn't the compiler 
>> normally
>> catch that before it gets to the linker?
>
> No. The reason is the implementation may be in another .obj file known 
> only to the linker.

But even if it is, it should still at least be declared in the .d file that 
has the class's definition, shouldn't it?




More information about the Digitalmars-d mailing list