Sign in to follow this  
michael.44x

Sqlite problem C++ (xCode)

Recommended Posts

michael.44x    101
Hi,
I am having problem with build - "Release GCC (ARM) - at xCode of the program which uses sqlite library.
The error message is:

ld: cannot find -lsqlite3
collect2: ld returned 1 exit status
Command /Users/kkm/.config/marmalade/root/s3e/bin/wrappers/arm-none-eabi-g++ failed with exit code 1

I have included Sqlite.c and sqlite.h (amalgamation) and also linked binary with library "libsqlite3.dylib". I use marmalade 6.1. Surprisingly the error does NOT appear with build - "Debug (x86)".

Do you have any ideas how to solve the issue?

Share this post


Link to post
Share on other sites
Cromulent    398
That is because the version of libsqlite3.dylib is built for the x86 / x86_64 architectures. Stop linking against it.and just include the .c and .h files in your project.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this