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
C++ API does not work #4144
Comments
As what encoding are you saving the file? DuckDB expects UTF8 encoded strings. |
I am not sure where I need to change the encoding. I tried both /utf-8 compiler flag in MSVC and replacing the query with |
This C interface example https://github.com/duckdb/duckdb/blob/master/examples/embedded-c/main.c works fine though... |
i am facing the same problem. C example can work fine ,but c++ can not. |
g++.exe -fdiagnostics-color=always -g -I"D:\Go\c-demo\c++" -L"D:\Go\c-demo\c++" -llibduckdb duckdb_cppintegration.cpp -o duckdb_cppintegration -std=c++11 |
Are you sure this is using MVSC? To me it looks like you are using G++/MinGW or something like that. |
yes,i am using MinGW. |
Is it possible to support MinGW? |
We don't actively support MinGW right now, aside from as part of the R client. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
Keeping this issue alive because duckdb doesn't work with windows msvc using C++ API. |
This issue seems to be about MingW, not MSVC. We don't support MingW, but we definitely do support MSVC, as that's how we compile for Windows. If you're having an issue with MSVC, please create an issue with a full reproduction |
I'll open another issue shortly using the latest stable release, but the original post in this thread is posted keeping msvc in mind and not mingw. I tried building the example app with |
@arnabanimesh what do you mean "wouldn't show any output"? |
I would do result -> print(); but it wouldn't show any output.
Even normal cout in the first line of the program wouldn't print anything. Cout prints properly if I remove every line associated with duckdb.
…On Sat, 16 Sept, 2023, 9:31 am Elliana May, ***@***.***> wrote:
@arnabanimesh <https://github.com/arnabanimesh> what do you mean
"wouldn't show any output"?
—
Reply to this email directly, view it on GitHub
<#4144 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOAZSBOZ3YRF7DB33SI2MLX2UQBXANCNFSM532EGLCA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Can you provide a sample of the code you're running? |
It works when I built the main branch on my system. C++ API doesn't work when using the 0.8.1 version. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stale for 30 days with no activity. |
What happens?
Any query results in parser error.
To Reproduce
Output: parser error, with random details:
One run:
I was trying to run sample code from https://duckdb.org/docs/data/appender.
Environment (please complete the following information):
Identity Disclosure:
The text was updated successfully, but these errors were encountered: