Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Support #10

Open
jmont-dev opened this issue Aug 10, 2024 · 1 comment
Open

Windows Support #10

jmont-dev opened this issue Aug 10, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jmont-dev
Copy link
Owner

The library should be tested using MinGW and Visual C++ on Windows to confirm that it has cross-platform support.

@jmont-dev jmont-dev added the enhancement New feature or request label Aug 10, 2024
@jmont-dev jmont-dev added this to the 1.0 Release milestone Aug 10, 2024
@jmont-dev jmont-dev self-assigned this Aug 10, 2024
@JG-Adams
Copy link

All that I needed in order to compile for MinGW on Window is:
set the window macro for window 10. _WIN32_WINNT=0x0A00
And link to winsock. -ws2_32.

In CMake, it look like this.
if (WIN32)
if (MINGW)
add_definitions(-D_WIN32_WINNT=0x0A00)
endif(MINGW)
#link_libraries(wsock32 ws2_32)
link_libraries(ws2_32)
endif (WIN32)

Fairly straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants