By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,260 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,260 IT Pros & Developers. It's quick & easy.

Creating c++ shared object library on Solaris

P: n/a
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.
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 28 Jul 2003 13:31:46 -0700, am********@hotmail.com (amit) wrote in
comp.lang.c++:
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
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.