-
Notifications
You must be signed in to change notification settings - Fork 160
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
relative import error #86
Comments
Abseil is included as a submodule in clickhouse-cpp. You should just clone the clickhouse-cpp repo recursively, with submodules: git clone --recursive https://github.com/ClickHouse/clickhouse-cpp.git |
Can't find no |
Looks like
|
|
yes, it is successfully installed but can't be used.Try to run your example after fresh |
What do you mean it can't be used? How are you trying to use it exactly? |
This is my test project:
And this is what I get:
|
You have 2 options:
|
The first option will not work, because you make a relative include P.S.: now I got the impression about the library :) |
|
Yes, I confirm that |
Thanks for your input. If you have any specific improvement on you mind, feel free to open a PR with proposed changes. Meanwhile, I am sure the maintainers will look into improving this at some point. |
i am having the same problem. What should I do? can you help me |
@kkonevets can you help me solve your problem ? |
Didn't try to compile the fresh version of the code, as I wrote set CMAKE_PREFIX_PATH to abseil install path and it should work |
@kkonevets |
yes, try |
Why you are not able to run the example if you could build it? @frkn4129 |
i can't understand using namespace clickhouse; /// Initialize client connection. i run -> g++ -I /usr/local/include/absl -std=c++17 deneme.cpp |
you should also link with ClickHouse lib, read this |
i can try g++ -L/usr/local/lib -lclickhouse-cpp-lib -I /usr/local/include/absl -std=c++17 deneme.cpp but again this error /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function |
First of all, why do you use |
This change solves ClickHouse#86, ClickHouse#99. Furthermore, it eases Conan packaging, as Conan already provides abseil, lz4 and cityhash. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Furthermore, it eases Conan packaging, as Conan already provides abseil, lz4 and cityhash. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Furthermore, it eases Conan packaging, as Conan already provides abseil, lz4 and cityhash. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Furthermore, it eases Conan packaging, as Conan already provides abseil, lz4 and cityhash. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Furthermore, it eases Conan packaging, as Conan already provides abseil, lz4 and cityhash. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Furthermore, it eases Conan packaging, as Conan already provides abseil, lz4 and cityhash. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
This change solves ClickHouse#86, ClickHouse#99. Signed-off-by: David Keller <[email protected]>
I did
Then I tried to build this example
Seems like
absl
should not be explicitly included totypes.h
but be linked with some function instead. Relative import errorThe text was updated successfully, but these errors were encountered: