public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: Use +z or +Z to recompile...
@ 2002-10-21 10:47 Venkatakrishnan, V
  2002-10-21 10:55 ` Jeff Law
  0 siblings, 1 reply; 5+ messages in thread
From: Venkatakrishnan, V @ 2002-10-21 10:47 UTC (permalink / raw)
  To: 'law@redhat.com'; +Cc: gcc-help

Using -fPIC gives the same error.

-----Original Message-----
From: Jeff Law [mailto:law@porcupine.cygnus.com] 
Sent: Monday, October 21, 2002 12:34 PM
To: Venkatakrishnan, V
Cc: gcc-help@gcc.gnu.org
Subject: Re: Use +z or +Z to recompile... 


In message
<8229C4577A00D511ABC00090277A45A0012361B1@us0111-ch-ms1.sdi.xcdg.xer
ox.com>, "Venkatakrishnan, V" writes:
 >Hi,
 >	I'm using gcc ver 3.2 20020708 (experimental) on my HPUX 11.0 box.
 >	When building a shared library I get an error as follows....
 >
 >/usr/ccs/bin/ld: DP relative code in file /var/tmp//ccCoJZUg.o - shared
>library must be position independent.  Use +z or +Z to recompile.  >
 >	Now I'm already using the -fpic option while compiling my .c to .o
 >using which I then try to build my .sl, so I guess my object file is
already  >position independent.  Why the error during link though?
 >	Is there something I'm missing here??
Use -fPIC rather than -fpic.
jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-23 10:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-21 10:47 Use +z or +Z to recompile Venkatakrishnan, V
2002-10-21 10:55 ` Jeff Law
2002-10-21 17:50   ` Nagu
2002-10-22  2:27     ` multiple function definition (was: RE: Use +z or +Z to recompile...) Claudio Bley
2002-10-23  3:45     ` Use +z or +Z to recompile Andrea Bocci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).