1 * vxjcLnWdi-Compiling shared lib with native Sun compiler (cc, aka, CC)

1 * vxjcLnWdi-Compiling shared lib with native Sun compiler (cc, aka, CC)

Post by Vbaa HMAIL-exch4 » Thu, 23 Sep 1999 04:00:00



I have been happily working along building my shared libraries with GCC,
using the usual: gcc -fPIC -c foo.c

Then I link it with: ld -G -h libfoo.so.1 -o libfoo.so foo.o

and everything is peachy.  Today, I tried to do the same thing with the
native compiler, using: cc -pic -c foo.c (and the same ld cmd to link)
but when I then try to link against the lib, it says it can't find any
of
the symbols (routines declared in the shared lib).  As I say, it works
fine
in gcc.

Assuming that there would be some benefit in using the native compiler,
is
there any other command line options I need to include to make the
symbols
visible?

 
 
 

1. 1 * BgyKFFrNo-Compiling shared lib with native Sun compiler (cc, aka, CC)

I have been happily working along building my shared libraries with GCC,
using the usual: gcc -fPIC -c foo.c

Then I link it with: ld -G -h libfoo.so.1 -o libfoo.so foo.o

and everything is peachy.  Today, I tried to do the same thing with the
native compiler, using: cc -pic -c foo.c (and the same ld cmd to link)
but when I then try to link against the lib, it says it can't find any
of
the symbols (routines declared in the shared lib).  As I say, it works
fine
in gcc.

Assuming that there would be some benefit in using the native compiler,
is
there any other command line options I need to include to make the
symbols
visible?

2. A Desktop Note

3. 2 * tCTtngjxY-Compiling shared lib with native Sun compiler (cc, aka, CC)

4. awkcc

5. Compiling shared lib with native Sun compiler (cc, aka, CC)

6. FATAL SERVER ERROR CAN'T RUN X AS USER

7. 1 * xuzIBiqvq-Compiling shared lib with native Sun compiler (cc, aka, CC)

8. __STDC__?

9. 1 * NmepTvXvo-Compiling shared lib with native Sun compiler (cc, aka, CC)

10. 2 * QQLISpHcd-Compiling shared lib with native Sun compiler (cc, aka, CC)

11. 2 * QpIFQClyA-Compiling shared lib with native Sun compiler (cc, aka, CC)

12. Help on building shared libs in Sun CC

13. CC/cc please help. (Non-compiling program)