You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run a cmake build through VS2019 for tiny-curl. Getting some errors due to 'fd_set' not getting defined by any of the includes in include\curl\system.h. I noticed that CURL_PULL_WS2TCPIP_H was set to one in this block higher up:
If I add a #define CURL_PULL_WS2TCPIP_H 1 to the _MSC_VER, then complains about SIZEOF_CURL_OFF_T not being set. Anyone know where that should be getting set to 1 if building with MSVC? Is it there? (Is it a bug?)
As far as defining SIZEOF_CURL_OFF_T, is is supposed to pick that up from config-win32.h?
Thanks for your help
EDIT1:
Commenting out add_definitions(-DHAVE_CONFIG_H) in the top level CMakeLists.txt, allows the build to complete successfully. When it's enabled it looks like it's curl_config.h gets selected in curl_setup.h instead of the platform specific one config-win32.h.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
Trying to run a cmake build through VS2019 for tiny-curl. Getting some errors due to 'fd_set' not getting defined by any of the includes in include\curl\system.h. I noticed that CURL_PULL_WS2TCPIP_H was set to one in this block higher up:
but not in this block
If I add a
#define CURL_PULL_WS2TCPIP_H 1
to the _MSC_VER, then complains about SIZEOF_CURL_OFF_T not being set. Anyone know where that should be getting set to 1 if building with MSVC? Is it there? (Is it a bug?)As far as defining SIZEOF_CURL_OFF_T, is is supposed to pick that up from config-win32.h?
Thanks for your help
EDIT1:
Commenting out
add_definitions(-DHAVE_CONFIG_H)
in the top level CMakeLists.txt, allows the build to complete successfully. When it's enabled it looks like it's curl_config.h gets selected in curl_setup.h instead of the platform specific one config-win32.h.Beta Was this translation helpful? Give feedback.
All reactions