[gccsdk] Creating shared libraries

alan buckley alan_baa at hotmail.com
Mon Nov 17 05:15:50 PST 2008


I don't seem to be able to create shared libraries
on RISC OS.
 
I found a simple example on the web and tried the
following to build it in an Obey file:
 
gcc -fPIC -Wall -g -c libhello.c
gcc -shared -Wl,-soname,libhello.so.0 -olibhello/so/0/0 libhello.o
 
The Result I got was:

/ADFS::HardDisc4.$/Apps/Development/!GCC/bin/ld: cannot open output file libhello/so/0/0: Can't open 'libhello.so.0.0'
collect2: ld returned 1 exit status

I also tried -olibhello.so.0.0 and that also did not work.
 
Can anyone suggest what I might be doing wrong?
 
Thanks,
Alan
 
_________________________________________________________________
BigSnapSearch.com - 24 prizes a day, every day - Search Now!
http://clk.atdmt.com/UKM/go/117442309/direct/01/



More information about the gcc mailing list