This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
help about linking a library
- From: "RajasekharReddy Guntaka" <reddy_grs at www dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Aug 2002 09:58:03 -0700
- Subject: help about linking a library
Hi group,
When I compile an GUI program with gcc, command gives ld exit status.
I compiled a program with fallowing command.
gcc -I/usr/local/include -I/usr/openwin/include -I/homes/guntaka/pub/guide/include -DMAIN -D_OTHER_TEXTSW_FUNCTIONS -DHARDWIRED -g -L/usr/local/lib -L/usr/openwin/lib -L/homes/guntaka/pub/guide/lib -o dlx_hw dlx_ui.o hw_ui.o dlx_stubs.o dlx_paint.o dlxasm.o dlx_mem.o dlx_simu.o datapath.o dp_op.o hw_ed_op.o hw_init.o hw_cu.o hw_file.o hw_paint.o -lguide -lguidexv -lxview -lolgx -lX11 -lpixrect
I put guide and guidexv in /homes/guntaka/pub/guide
the command gives th fallowing error.
cannot find -lpixrectld returned 1 exit status.
but i am sure that pixrect header files is in /usr/openwin/include
I think I have to create some library file like libpixrect.a
Is it in system library default.
Or how can I create that library file
please help me.
sincerely,
RajasekharaReddy Guntaka
hauptstr.16 D-30457 Hannover
------------------------------------------------------------
WWW.COM - Where the Web Begins! http://www.www.com
---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------