I have inherited a JUCE project and am trying to merge some new functionality into which uses a UDP socket. That code is all written and I’d prefer leave it as is. The trouble is, it uses a bunch of winsock/2.h functions like ntohl, recvfrom, etc. and there seems to be a conflict in the JUCE project somewhere because if I include winsock2.h I get winnt.h errors, a la:
1>d:\microsoft sdks\windows\v7.0a\include\winnt.h(1084): error C2988: unrecognizable template declaration/definition
if I don’t include winsock then it doesn’t know what ntohl(), etc. are.
I am aware of the JUCE datagrams code, this would require rewriting a chunk of code which is working outside of this JUCE project.
FWIW, I am in Visual Studio Express 2010.