[LCP]error while linking static library
Y Giridhar Appaji Nag
Giridhar.Nag at ubinetics.co.in
Thu Jul 24 17:24:02 UTC 2003
mehul radheshyam choube wrote:
> and then tried to link it statically but got error
>
> g++ -c main.cpp
> g++ -Wall -g -o ../bin/kcvsClient main.o -L../lib/kcvsClient.a
^^^^^^^^
from man g++
-Ldir Add directory dir to the list of directories to be
searched for `-l'.
-llibrary
Use the library named library when linking. (C++
programs often require `-lg++' for successful link
ing.)
Giridhar
--
Y Giridhar Appaji Nag Giridhar.Nag(@t)ubinetics[.]co.in
Not throwing out the baby with the bath-water doesn't mean that
you cannot improve the system. I'm only arguing against stupid
people who think they need a revolution to improve - most real
improvements are evolutionary. - Linus Torvalds
an individual are not necessarily those of UbiNetics
More information about the linuxCprogramming
mailing list