• Advertisement
Sign in to follow this  

Sqlite problem C++ (xCode)

This topic is 1914 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement