Skip to content

Windows R CI: #warning Please include winsock2.h before windows.h #11419

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

Open
jakirkham opened this issue Apr 19, 2025 · 1 comment
Open

Windows R CI: #warning Please include winsock2.h before windows.h #11419

jakirkham opened this issue Apr 19, 2025 · 1 comment

Comments

@jakirkham
Copy link
Contributor

Seeing the following warning in Windows R CI builds (also attached log for posterity):

g++  -std=gnu++17 -I"C:/R/include" -DNDEBUG -I../..//include -I../..//dmlc-core/include -I../../ -DXGBOOST_BUILTIN_PREFETCH_PRESENT=1 -DXGBOOST_MM_PREFETCH_PRESENT=1 -DXGBOOST_STRICT_R_MODE=1 -DDMLC_LOG_BEFORE_THROW=0 -DDMLC_ENABLE_STD_THREAD=0 -DDMLC_DISABLE_STDIN=1 -DDMLC_LOG_CUSTOMIZE=1    -I"c:/rtools45/x86_64-w64-mingw32.static.posix/include"   -fopenmp -DDMLC_CMAKE_LITTLE_ENDIAN=1 -pthread    -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign    -c ../..//src/metric/elementwise_metric.cc -o ../..//src/metric/elementwise_metric.o
In file included from ../..//include/xgboost/collective/socket.h:23,
                 from ../../src/common/../collective/loop.h:19,
                 from ../../src/common/../collective/comm.h:14,
                 from ../../src/common/../collective/broadcast.h:8,
                 from ../../src/common/random.h:22,
                 from xgboost_custom.cc:6:
C:/rtools45/x86_64-w64-mingw32.static.posix/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
@trivialfis
Copy link
Member

The windows.h include is probably from dmlc.

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

No branches or pull requests

2 participants