-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
symbol(s) not found for architecture x86_64 #592
Comments
I think it is looking for Xcode in module maps. |
you'll need to add the linker option: $ swift build -Xlinker -lsqlite3 |
Thank you. That does seem to do the trick, at least on my macOS machine. |
OK, but Linux might not work out of the box (yet). |
Unfortunately, you are right :-( |
@VictorVanDoom Linux support shouldn't be too tricky to add. @stephencelis, can you give me write access to https://github.com/stephencelis/CSQlite? |
@jberkel Done! |
Hi experts, when compiling something similar in my Qt Creator IDE, I got similar error as below: Undefined symbols for architecture x86_64: I guess it means the compiler failed to find the sqlite dependency/framwork. Can anyone advise how to add code in CMakelists.txt file? The code was compilable in Mac terminal with g++ but failed in Qt Creator |
Hi,
when I try to build SQLite using the swift x86_64 compiler on macOS (probably also on Linux, didn't test that yet), I get the following build error:
The swift-compiler is version 3.0.2-RELEASE. I've tried setting up a new swift project with only the SQLite-dependency to rule out any dependency on my side, but I get the same build-error.
Edit: It does seem to work when I generate the Xcode-project using
swift package generate-xcodeproj
and enable Modules for the SQLiteObjC target. Unfortunately this does not really help, as, in the end, my build-pipeline will invoke the swift-build command on a Linux machine.The text was updated successfully, but these errors were encountered: