On 07/05/2014 09:02 AM, Ondra Yogger wrote:
> I have followed instructions for linux and got rid off errors I had, but
> now I have this one:
>
>
> make all Building target: SQLiteTest
> Invoking: GCC C Linker
> gcc -L/usr/include/ -o "SQLiteTest" ./hello.o -lsqlite3.h
> /usr/bin/ld: cannot find -lsqlite3.h
> collect2: error: ld returned 1 exit status
> make: *** [SQLiteTest] Error 1
>
>
> I checked /usr/include/ and there really is sqlite3.h file.
> Could you help me with that please?
>
> Thank you.
You are confusing a header file with a library. You don't pass header
files to the linker. Go back to the Libraries settings for the linker
and give the library name (most likely sqlite3) instead of the header
file name.