Sqlite problem C++ (xCode)

Started by
0 comments, last by Cromulent 11 years, 5 months ago
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?
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.

This topic is closed to new replies.

Advertisement