View previous topic :: View next topic |
Author |
Message |
BobDobbs
Joined: 03 Oct 2006 Posts: 6
|
Posted: Tue Dec 12, 2006 12:00 am Post subject: perhaps a general d problem but maybe a build issue soo.... |
|
|
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 |
|
|
Derek Parnell
Joined: 22 Apr 2004 Posts: 408 Location: Melbourne, Australia
|
Posted: Mon Dec 18, 2006 12:26 am Post subject: |
|
|
I think its a problem with DigitalMars. _________________ --
Derek
skype name: derek.j.parnell |
|
Back to top |
|
|
|