HowardHinnant / date

A date and time library based on the C++11/14/17 <chrono> header
Other
3.15k stars 682 forks source link

Is it feasible to build tz.lib/tz.dll.lib by statically linked with CURL? #558

Open denchat opened 4 years ago

denchat commented 4 years ago

I tried this

-DCURL_STATICLIB=1 -DCURL_LIBRARY="C:/Program Files/curl/lib/libcurl.a"

but failed...

lld-link: error: undefined symbol: __declspec(dllimport) curl_easy_setopt
>>> referenced by CMakeFiles\tz.dir\src\tz.cpp.obj:(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl date::remote_version(void))
HowardHinnant commented 4 years ago

Sorry, I don't know much about building on Windows. These are the best Windows-specific instructions I have: https://howardhinnant.github.io/date/tz.html#Installation