Hi,
I'm a newbie in programming on Un*x platforms, so maybe, it could
be caused by my lack of experience.
Ok. I have a static library "libSM.a" depending on two libraries one
of them shared: "libErrP.so" and a static one: "libCB.a"
I'm trying to compile an executable "EInvA" linking with both "libSM.a" and
"libCB.a" and get the following error:
CC -mt -fast -DNONE_CLASH -o RELEASE/EInvA RELEASE/inva.o
-lsocket -lnsl -ldl -lCstd -lc -lnsl -lsocket -lclntsh
-L/libs/libSM/STATIC -lSM -L/libs/libCB/STATIC -lCB
Undefined symbol first referenced in file
int CB::Connect(char*, char*) /libs/libSM/STATIC/libSM.a (libSM.o)
CB::CB() /libs/libSM/STATIC/libSM.a (libSM.o)
CB::~CB() /libs/libSM/STATIC/libSM.a (libSM.o)
And "CB" symbols are defined in "libCB.a"
?Could someone tell me what could be happening?
Thanks in advanced,
R.