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

'sqlite3-binding.h' file not found with <angled> include; use "quotes" instead #1033

Closed
1fanwang opened this issue Apr 20, 2022 · 2 comments
Closed

Comments

@1fanwang
Copy link

1fanwang commented Apr 20, 2022

Wondering if anyone had library issues related to Apple M1 (not sure if this is the reason, just a wild guess)

Our project is in Golang and uses Bazel, and build have been failing for me with ERROR '/private/var/tmp/_bazel_<usr>/6a928f809ee3a14ad8b957e75e243b76/sandbox/darwin-sandbox/8/execroot/,project/external/com_github_mattn_go_sqlite3/backup.go:10:10: error: 'sqlite3-binding.h' file not found with <angled> include; use "quotes" instead

I was trying to figure out a more generic way to fix this issue.

For a temp work around: I had to fix all of the following files’ #include <sqlite3-binding.h> to use “quotes” instead of <angled>, now my build is WORKING!

  • backup.go
  • callback.go
  • error.go
  • sqlite3.go
  • sqlite3_context.go
  • sqlite3_load_extension.go
  • sqlite3_type.go

MacOS: Monterey 12.3.1
Chip: Apple M1 Pro

@1fanwang 1fanwang changed the title Apple M1: 'sqlite3-binding.h' file not found with <angled> include; use "quotes" instead 'sqlite3-binding.h' file not found with <angled> include; use "quotes" instead Apr 20, 2022
@rittneje
Copy link
Collaborator

Which version of this library are you using? Because all the files you mentioned are already using #include "sqlite3-binding.h" since #868 was merged (so v1.14.10+).

@1fanwang
Copy link
Author

Thanks @rittneje , turns out we are using 1.14.9, trying 1.14.10 now

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

2 participants