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

'Failed to connect' exception using MSVC #127

Closed
xiangyue1993 opened this issue Dec 21, 2021 · 3 comments · Fixed by #131
Closed

'Failed to connect' exception using MSVC #127

xiangyue1993 opened this issue Dec 21, 2021 · 3 comments · Fixed by #131
Assignees

Comments

@xiangyue1993
Copy link

xiangyue1993 commented Dec 21, 2021

Hello,

I was using MSVC to build clickhousecpp (version 2.0.0) on Windows, and the static library was generated successfully. However, an exception of failed to connect occurred when I run the simple-test project. There is a clickhouse server running on my localhost, exposing the 9000 port. I test the connection with python clickhouse_driver and everything is ok.

By the way, I encountered a problem with signbit: ambiguous call to overloaded function when I was building the clickhousecpp library. The problem was solved according to #100, and I don't know whether it is an official solution.

Is there any idea of this issue?

Thanks

@xiangyue1993
Copy link
Author

I found the exception throw when creating the socket connection, and I cannot figure out what cause the issue since I'm not familiar with socket programming.

However, there was an older version of clickhousecpp (version of 3 years ago) on my PC, then I rebuilt the library, and it works well.

@xinstein
Copy link

xinstein commented Jan 6, 2022

How did you get msvc to compile clickhouse-cpp correctly?
I'm facing the
error C2039: 'min': is not a member of 'std'

@filimonov
Copy link
Collaborator

Depends on #130

filimonov added a commit that referenced this issue Jan 7, 2022
filimonov added a commit that referenced this issue Jan 10, 2022
filimonov added a commit that referenced this issue Jan 10, 2022
@Enmk Enmk closed this as completed in #131 Feb 1, 2022
@filimonov filimonov self-assigned this Apr 15, 2022
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

Successfully merging a pull request may close this issue.

3 participants