nanogui: how can link my shared library?
Subject:
Re: how can link my shared library?
From:
Alex Holden ####@####.####
Date:
16 Dec 2000 08:53:12 -0000
Message-Id: <Pine.LNX.4.04.10012160846230.748-100000@hyperspace.linuxhacker.org>
On Thu, 14 Dec 2000, Ysuk Chung wrote:
> once i made shared library 'libmylib.so.1 and link libmylib.so,
> arm-linux-ld -Bstatic -o test test1.o test2.o test3.o
> -L/path/to/mylib/lib -lmylib
You're trying to link a shared library statically. You'll need to make a
static version of your library (generated by using ar to archive the .o
files together into a .a file) or remove the -Bstatic flag from your ld
invocation. BTW, it's generally bad practise to call ld directly when
building a user space program- let gcc do it for you.
--
------- Alex Holden -------
http://www.linuxhacker.org/
http://www.robogeeks.org/