Creating c++ shared object library on Solaris

A

amit

Hi,
I have got GNU c++ compiler installed on solaris.I want to create a
shared object library on solaris for an External stored procedure.Got
makefil.sol to be used on solaris as under :

CC=CC
FLAGS=+w -mt -g0 -KPIC -D_REENTRANT -DRW_MULTI_THREAD -DRW_NO_STL
-DUNIX -DCC
DEFINES=-DSunOS
INCLUDEDIRS=-I$(PMHOME)/ExtProc/include
INFLIBS=-L$(PMHOME) -lpmtx
SYSLIBS=-lc -lm -ldl
..SUFFIXES : .cpp
..cpp.o : ;$(CC) -c $(FLAGS) $(DEFINES) $(INCLUDEDIRS) $*.cpp -o $*.o
TARGET=libRowGenBase.so.1
OBJS=$(SRCS:%.cpp=%.o)
SRCS= \
atxrowgenbase.cpp \
version.cpp \
genrows.cpp
all : $(TARGET)
$(TARGET) : $(OBJS)
CC -o $(TARGET) -G -mt $(OBJS) $(SYSLIBS) $(INFLIBS)

I am wondering how should i compile this stuff using makefile so i
could get shared object on solaris.Thankx in advance.
 
J

Jack Klein

Hi,
I have got GNU c++ compiler installed on solaris.I want to create a
shared object library on solaris for an External stored procedure.Got
makefil.sol to be used on solaris as under :

[snip]

The structure of libraries, shared or otherwise, are compiler and/or
operating system specific and not defined by the language.

You need to ask in a gcc or Solaris newsgroup, it is not a language
issue.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top