This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Dynamic Libraries under Solaris



Hi

 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
sections.

Is this because the shared versions of libg++ and libstdc++ are not
present?

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?

Thanx
vinu

NB: This (both gcc and g++) works fine in Linux.

Vinu V. Nair   
Software Engineer
Silicon Automation Systems Limited
5281461/5281229-2213   


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]