From: khan AT xraylith DOT wisc DOT edu (Mumit Khan) Subject: Re: "ld: fatal: relocations remain against allocatable but non-writable sections" Error 23 Oct 1998 12:32:26 -0700 Message-ID: <9810230006.AA21077.cygnus.gnu-win32@modi.xraylith.wisc.edu> References: <001b01bdfd38$a27c8f70$22ba6ec6 AT athena DOT ajboggs DOT com> To: "Chris Kirgios" Cc: gnu-win32 AT cygnus DOT com "Chris Kirgios" writes: > I have a problem linking my code using GNU g++. On Solaris, I create a bunch > of shared libraries using g++. One of the libraries used to be a C library > that I 'converted' to ANSI C. It contains some global variables (I am not > sure this is relevant but ...). > Whenever I link that library with > > g++ -shared -o win32 GCC ports don't support the -shared flag since the linker doesn't yet support the -shared flag. See http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ for my dllhelpers package, which will go away and die once the PE linker supports creating shared libraries (using -G or -shared). Colin Peters also has a good description of the process on his web (there is a link to his site from -- see "Related Sites" on my web page). Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".