Probably trivial Linux link problem that I've spent hours on.

Johannes Pfau via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 5 04:58:05 PDT 2016


Am Tue, 5 Jul 2016 00:37:54 -0700
schrieb Ali Çehreli <acehreli at yahoo.com>:

> On 07/04/2016 08:32 PM, WhatMeWorry wrote:
> 
>  > /usr/bin/ld: cannot find -lsqlite3
>  > collect2: error: ld returned 1 exit status  
> 
> I had the same issue when building Button with dub on Ubuntu 16.04.
> My hack was to create the following symlink to the already existing 
> libsqlite3.so.0:
> 
>    sudo ln -s /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 
> /usr/lib/x86_64-linux-gnu/libsqlite3.so
> 
> Ali
> 

Some time ago Debian (and therefore Ubuntu as well) moved the
unversioned .so symlinks into the -dev packages. This means you'll
always need the -dev packages now when linking with a C library, even if
you only use the dynamic library.



More information about the Digitalmars-d-learn mailing list