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

Cannot open odbcsql when following readme example #22

Open
Musab-Nazir opened this issue Oct 19, 2023 · 0 comments
Open

Cannot open odbcsql when following readme example #22

Musab-Nazir opened this issue Oct 19, 2023 · 0 comments

Comments

@Musab-Nazir
Copy link

Musab-Nazir commented Oct 19, 2023

Very likely I might have missed a step somewhere but when I attempted a basic connection using the example in the README. I got the following error:
odbc.nim(12, 3) Error: cannot open file: odbcsql

I'm on nim v2.0, windows x64

My hacky workaround:
I noticed (purely by chance) that the db_connector package comes with this odbcsql.nim file. I moved this missing file into the odbc source code dir and modified the import in the main odbc.nim to point to the new file structure. After this I was able to compile and connect like the example showed.

Is something missing from the readme or did the nim v2 change the bundled files or something? Because simply downloading this package and trying to connect like the readme shows does not work with nim v2.0

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

No branches or pull requests

1 participant