openframeworks / openframeworks/openFrameworks

winsock incompatibility error in ws2tcpip.h

Open
#3,681 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

addon bug prelim-analysis
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.