This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: help about linking a library
- From: "Claudio Bley" <bley at cs dot uni-magdeburg dot de>
- To: "RajasekharReddy Guntaka" <reddy_grs at www dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 2 Sep 2002 12:26:27 +0200
- Subject: Re: help about linking a library
- References: <200208301658.g7UGw3201924@mail15.bigmailbox.com>
>>>>> "RG" == RajasekharReddy Guntaka <reddy_grs@www.com> writes:
RG> I compiled a program with fallowing command. gcc
RG> -I/usr/local/include -I/usr/openwin/include
RG> -I/homes/guntaka/pub/guide/include -DMAIN
RG> -D_OTHER_TEXTSW_FUNCTIONS -DHARDWIRED -g -L/usr/local/lib
RG> -L/usr/openwin/lib -L/homes/guntaka/pub/guide/lib -o dlx_hw
RG> dlx_ui.o hw_ui.o dlx_stubs.o dlx_paint.o dlxasm.o dlx_mem.o
RG> dlx_simu.o datapath.o dp_op.o hw_ed_op.o hw_init.o hw_cu.o
RG> hw_file.o hw_paint.o -lguide -lguidexv -lxview -lolgx -lX11
RG> -lpixrect
RG> I put guide and guidexv in /homes/guntaka/pub/guide
RG> the command gives th fallowing error. cannot find -lpixrectld
RG> returned 1 exit status.
RG> but i am sure that pixrect header files is in
RG> /usr/openwin/include
This is irrelevant - the linker returned an error stating it can't
find a library file (not header file).
RG> I think I have to create some library file like libpixrect.a
RG> Is it in system library default. how can I create that
RG> library file
Are you sure you need that library? Try to compile without the
-lpixrect switch. You can create that file by compiling the software
this library belongs to or you possibly find an already compiled
version for your architecture and OS. Just search the web - google is
your friend.
Claudio