FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

perhaps a general d problem but maybe a build issue soo....

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
BobDobbs



Joined: 03 Oct 2006
Posts: 6

PostPosted: Tue Dec 12, 2006 12:00 am    Post subject: perhaps a general d problem but maybe a build issue soo.... Reply with quote

So I'm not sure what the deal is with this one.

I have

version(Windows) {
pragma(lib, "WS2_32.lib");
}

and i use htonl(int) in my code since it's networking and such.

but when i try to link the code i get the following issue.

C:\dmd\lib\phobos.lib(winsock) Offset 1D966H Record Type 00C3
Error 1: Previous Definition Different : _htonl@4

If i run code that uses ws2_32.lib but doesn't use htonl it builds fine. Conversely if i use code that doesn't use ws2_32.lib but does use the htonl code it works fine. It seems to be a conflict between phobos.lib and ws2_32.lib and is probably nothing to do with bud at all but I figured I might as well ask incase it had something to do with the order things were possibly being built in. I've gotta say I'm really not sure what to do about this problem yet.

Cheers.
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Mon Dec 18, 2006 12:26 am    Post subject: Reply with quote

I think its a problem with DigitalMars.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group