B
Bala
Hello,
I am trying to create a shared library on solaris. The inputs to this
library is a source file and then 2 static libraries.
I need to call code within the shared library in another application
which in turn will use the static libraries for further processing.
This is the command i am using to build the shared library
g++ -Wno-deprecated -DSOLARIS -DSUN4 -DSUN -DSVR4 -
D_POSIX_PTHREAD_SEMANTICS
-I/usr/java/include -I/usr/java/include/solaris -I/home1/users/biyer/
Bala/OAPI/include
-I/home1/users/biyer/Bala/OAPI/src ../lib/liba ../lib/libb Common.C -o
Common.o
g++ -fpic -D_REENTRANT -shared Common.o -o libSubscribe.so
Though the file that i have included in Common.C has declaration for
the method ULIST_create that i am calling from Common.C, it still
gives me a compilation error
Undefined first referenced
symbol in file
ULIST_create() /var/tmp//ccxiLplo.o
I get similar errors for every method that i am trying to call from
Common.C which are defined in the static libraries.
Am I creating the shared library the way it should be created? Can you
please let me know where its going wrong?
Thanks in advance
I am trying to create a shared library on solaris. The inputs to this
library is a source file and then 2 static libraries.
I need to call code within the shared library in another application
which in turn will use the static libraries for further processing.
This is the command i am using to build the shared library
g++ -Wno-deprecated -DSOLARIS -DSUN4 -DSUN -DSVR4 -
D_POSIX_PTHREAD_SEMANTICS
-I/usr/java/include -I/usr/java/include/solaris -I/home1/users/biyer/
Bala/OAPI/include
-I/home1/users/biyer/Bala/OAPI/src ../lib/liba ../lib/libb Common.C -o
Common.o
g++ -fpic -D_REENTRANT -shared Common.o -o libSubscribe.so
Though the file that i have included in Common.C has declaration for
the method ULIST_create that i am calling from Common.C, it still
gives me a compilation error
Undefined first referenced
symbol in file
ULIST_create() /var/tmp//ccxiLplo.o
I get similar errors for every method that i am trying to call from
Common.C which are defined in the static libraries.
Am I creating the shared library the way it should be created? Can you
please let me know where its going wrong?
Thanks in advance