Index: [thread] [date] [subject] [author]
  From: Garrett Mitchener <wgm2@acpub.duke.edu>
  To  : 
  Date: 28 Feb 1999 19:28:14 -0500

Re: Shared Library

"Ted Hung" <tsh5@duke.com> writes:

> I'm having major problems compiling a shared library.
> In the documentation it says to use:
> 
> g++ -shared -o myfile myfile.o
> 
> I've tried this and it gives pages and pages of errors.
> My files compile fine using Make.  Any help would
> be greatly appreciated.
> 
> Ted Hung
> 
> below is the end snippet of the error:

*snip*

> 1ZcZt24__default_alloc_template2b0i0Z6Option 0x7c       getopt.o
> ld: fatal: relocations remain against allocatable but non-writable sections
> *** Error code 1
> make: Fatal error: Command failed for target `sharedlib'

Try compiling with -fPIC as well as -shared.  I don't know if it will
work, but try and post a reply of whether it does or not.

	-- Garrett :-)


Index: [thread] [date] [subject] [author]