Jump to content

  • Log In with Google      Sign In   
  • Create Account


Sqlite problem C++ (xCode)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 michael.44x   Members   -  Reputation: 101

Like
0Likes
Like

Posted 27 October 2012 - 07:52 AM

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?

Sponsor:

#2 Cromulent   Members   -  Reputation: 349

Like
0Likes
Like

Posted 27 October 2012 - 11:56 AM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS