This is the mail archive of the
mailing list for the GCC project.
Dynamic Libraries under Solaris
- To: gcc-help at gcc dot gnu dot org
- Subject: Dynamic Libraries under Solaris
- From: Vinu V Nair <vinu at sasi dot com>
- Date: Tue, 2 May 2000 16:40:21 +0530 (IST)
When I try to build a shared library as follows
g++ -o libname.so -shared source.o
where source.o is obtained as follows
g++ -c source.cxx,
The linker cribbs saying
ld: fatal: relocations remain against allocatable but non-writable
Is this because the shared versions of libg++ and libstdc++ are not
Again if I try to build the library by the following command
gcc -o libname.so -shared source.o it works. (source.o is made with g++)
But when I make the executable,
(ie. g++ libname.so -o exacutable.) I end up with a very big one.
What could be the reason for this?
NB: This (both gcc and g++) works fine in Linux.
Vinu V. Nair
Silicon Automation Systems Limited