openframeworks / openframeworks/openFrameworks
winsock incompatibility error in ws2tcpip.h
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
Hi there!
I tried to compile the ofxKinect addon. When I do so, I get the following error in ws2tcpip.h line 16:
#error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."
When i change line 33 in ofxKinect/libs/libfreenect/include/libfreenect.h from #include <winsock.h> to #include <winsock2.h> everything compiles fine.
Would you guys like me to send a pull request for this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with addons/ofxKinect/libs/libfreenect/include/libfreenect.h at line 33, where the incompatible Winsock header is included. Build the ofxKinect addon on the affected Windows setup and verify compilation completes without the ws2tcpip.h incompatibility error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100