ECS Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Can't get linker to recognize library
Mark Gilmore
Mon, 15 Sep 2003 08:08:51 -0700
Mon, 15 Sep 2003 08:08:51 -0700
Why does this link .sh report "cannot find -lutlb.a") ?:
         gcc -v -o$1 $1.o \
                 -l/home/mark/ut/utlb.a \
                 /usr/lib/libstdc++.so.2.9 \
                 /usr/lib/libtermcap.so \
                 /usr/lib/libpthread.so \
                 -lc -Xlinker -Map -Xlinker $1.map

I also tried this:
         gcc -v -o$1 $1.o \
                 -L.
                 -lutlb.a \
                 /usr/lib/libstdc++.so.2.9 \
                 /usr/lib/libtermcap.so \
                 /usr/lib/libpthread.so \
                 -lc -Xlinker -Map -Xlinker $1.map

And this:
         gcc -v -o$1 $1.o \
                 -L.
                 -l/home/mark/ut/utlb.a \
                 /usr/lib/libstdc++.so.2.9 \
                 /usr/lib/libtermcap.so \
                 /usr/lib/libpthread.so \
                 -lc -Xlinker -Map -Xlinker $1.map

thanks,

Mark Gilmore
http://OmnipotenceSoftware.com 



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.