Hi,
I want to attch libCoherence.so while creating my new static lib, bcse my lib functions use libCoherence.so.
My Makefile :
Code:
CC=/opt/studio12/SUNWspro/bin/CC
CFLAGS=-errtags=yes -g -c
all: libCoherence.a
libCoherence.a: SessionInfo.o SessionAttrInfo.o NXC_SessionInfo.o Coherence_TouchProcessor.o
ar -r libCoherence.a SessionInfo.o SessionAttrInfo.o NXC_SessionInfo.o Coherence_TouchProcessor.o /export/home2/Coherence/coherence-cpp-32bit/lib/libcoherence.so
SessionInfo.o: $(SRCDIR)/SessionInfo.cpp
$(CC) $(CFLAGS) -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ $(SRCDIR)/SessionInfo.cpp
SessionAttrInfo.o: $(SRCDIR)/SessionAttrInfo.cpp
$(CC) $(CFLAGS) -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ $(SRCDIR)/SessionAttrInfo.cpp
NXC_SessionInfo.o: $(SRCDIR)/NXC_SessionInfo.cpp
$(CC) $(CFLAGS) -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ $(SRCDIR)/NXC_SessionInfo.cpp
Coherence_TouchProcessor.o: $(SRCDIR)/Coherence_TouchProcessor.cpp
$(CC) $(CFLAGS) -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ $(SRCDIR)/Coherence_TouchProcessor.cpp
But it shows error :
Code:
/opt/studio12/SUNWspro/bin/CC -errtags=yes -g -c -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ ../src/coherence-src/SessionInfo.cpp
/opt/studio12/SUNWspro/bin/CC -errtags=yes -g -c -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ ../src/coherence-src/SessionAttrInfo.cpp
/opt/studio12/SUNWspro/bin/CC -errtags=yes -g -c -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ ../src/coherence-src/NXC_SessionInfo.cpp
/opt/studio12/SUNWspro/bin/CC -errtags=yes -g -c -I../../include -I/export/home2/Coherence/coherence-cpp-32bit/include/ ../src/coherence-src/Coherence_TouchProcessor.cpp
ar -r libCoherence.a SessionInfo.o SessionAttrInfo.o NXC_SessionInfo.o Coherence_TouchProcessor.o /export/home2/Coherence/coherence-cpp-32bit/lib/libcoherence.so
ar: creating libCoherence.a
internal error: error_message(58)
gmake: *** [libCoherence.a] Error 100
But if I remove "/export/home2/Coherence/coherence-cpp-32bit/lib/libcoherence.so" from Makefile, build went fine.
I am not sure if we could add a lib.
Please check.
Thanks.