-
Notifications
You must be signed in to change notification settings - Fork 173
[Q] Is there support for MSVC? #89
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
Comments
Can you send a PR with needed changes? |
In my case I get "min is not a member of std" when compiling with msvc, but when compiling with mingw64 both targets (clickhouse-cpp-lib and my-test-executable) compiles fine, but I also need to manually copy the libclickhouse-cpp-lib.dll into the executable-residing directory. The same project structure and code works totally fine on linux, but I need it on Windows.
|
I forgot to mention that I also need to add this line to
the same line is not needed on linux, where I can compile and run fine with all the code in repo as-is |
Fixed in #130 |
Uh oh!
There was an error while loading. Please reload this page.
clickhouse-cpp
located in3rd
folder.There's my
cmake
file:clickhouse-cpp-lib
is compiled successfully, butclickhouse_bech
isn't compiled becausenmake
can't findclickhouse-cpp-lib
library. What's the problem?UPD:
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
solved the problem, but now while starting the program Windows can't findclickhouse-cpp-lib.dll
UPD2: I put
clickhouse-cpp-lib.dll
into the folder where executable file is located. At least it starts, but now it fails on creating clientUPD3: I removed
SetNonBlock
beforeconnect
(line). Thanks, @victor-zou (#80, p. 4). Now selecting and inserting data works fine!The text was updated successfully, but these errors were encountered: