Re: probably an old question about overriding hardcoded library search paths

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 11 Nov 2012, Charles Smith wrote:

I confess I'm confused.

I thought that it worked, but now it's not working any more:

g++ \
       -L"/home/me/dir1" \
       -L"/home/me/dir2" \
       -L"/home/me/dirn" \
       /home/me/opt/lib/libsqlite3.a \
       -o "FLAT"   ./a.o ./b.o    -llib1 -llib2 -llibn
/home/me/dir2/liblib2.a(layer.o): In function `Entity::get_ip_config(char*)':
/home/me/a.cc:86: undefined reference to `sqlite3_open_v2'

If A depends on B, put -lA before -lB...

--
Marc Glisse


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux