Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 04:49 PM
amit
Guest
 
Posts: n/a
Default Creating c++ shared object library on Solaris

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.
  #2  
Old July 19th, 2005, 04:50 PM
Jack Klein
Guest
 
Posts: n/a
Default Re: Creating c++ shared object library on Solaris

On 28 Jul 2003 13:31:46 -0700, amitatoslo@hotmail.com (amit) wrote in
comp.lang.c++:
[color=blue]
> 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 :[/color]

[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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles