You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Henrik Wendt <hw...@premitech.com> on 2001/01/07 17:30:45 UTC
Solaris and g++
Hi
Has anyone had any succes compiling xerces on solaris using g++?
BR
Henrik Wendt
RE: Solaris and g++
Posted by Henrik Wendt <hw...@premitech.com>.
Hi - I also got it working now, using solaris 8 and gcc 2.95.2.
-----Original Message-----
From: Paul Duffy [mailto:paduffy@cisco.com]
Sent: 12. januar 2001 17:06
To: xerces-c-dev@xml.apache.org
Subject: Re: Solaris and g++
I had to use GCC 2.95.2 to successfully build Xerces 1.3 on Solaris 2.6.
This also required Binutils 2.10.
Cheers,
At 09:06 AM 1/12/01 +0800, you wrote:
>Hello,
>
>I have been subscribing from the XercesC mailing list since last year.
>But not until yesterday, I started using XercesC in solaris. I've been
>looking at the mailing list for pipol who have tried it in Solaris.
>
>I would like to ask help from you. Hope you'll have some time.
>
>I seem to have problems in compiling. It must be the libraries that I used.
>
>I believe you have tried this already.
>
>this is how my Makefile looks like:
>
>##################################
>## S T A R T M A K E F I L E ##
>
>##################################
>
>TARGET = sample
>SRCDIR = .
>CCX = g++ -g -O -fpic
>
>XERCES_DIR = /opt/xerces-c_1_2_0-SolCC
>ROGUEWAVE_DIR = /opt/rw/workspaces/SOLARIS26/SUNPRO42/12s
>
>INCLUDE
>= -I$(SRCDIR) -I$(XERCES_DIR)/include -I$(ROGUEWAVE_DIR)/rw -L/usr/local/li
b
> -L$(XERCES_DIR)/lib -L$(ROGUEWAVE_DIR)/lib
>LIBS = -lxerces-c1_2 ---------> problem occurs in this library
>OBJS = \
> main.o
>
>$(TARGET): $(OBJS)
> $(CCX) $(INCLUDE) $(OBJS) -o $(TARGET) $(LIBS)
>
>all: $(OBJS)
> $(CCX) $(INCLUDE) $(OBJS) -o $(TARGET) $(LIBS)
>
>clean:
> rm -f $(OBJS) core sample
>
>%.o: %.cpp
> $(CCX) $(INCLUDE) -c $(<)
>
>sample : main.o
>main.o: main.cpp
>
>##############################
>## E N D M A K E F I L E ##
>
>##############################
>
>I have already set the needed environment variables...
>
>My sample program that I used is just simple:
>#include <iostream.h>
>#include <string.h>
>#include <stdlib.h>
>#include <dom/DOM.hpp>
>
>int main()
>{
>
>// DOM_Node aNode;
>// DOM_Text someText;
>
> cout << "\nHello World... Xerces is now running. \n\n";
>}
>
>
>
>
> > Hi - I had no problem building with gcc 2.95.2 under SPARC Solaris 7 or
8.
> > If I recall correctly, I didn't have to do anything special; just
followed
> > the directions. I used a custom build of GCC with threads enabled and
use
> > of GNU linker/assembler disabled.
> >
> > Jim
> >
> > Henrik Wendt's bits of Sun, 7 Jan 2001 translated to:
> >
> > >Hi
> > >
> > >Has anyone had any succes compiling xerces on solaris using g++?
> > >
> > >BR
> > >
> > >Henrik Wendt
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
*********************************************************
Paul B Duffy paduffy@cisco.com
Cisco Systems, Inc.
********************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Solaris and g++
Posted by Paul Duffy <pa...@cisco.com>.
I had to use GCC 2.95.2 to successfully build Xerces 1.3 on Solaris 2.6.
This also required Binutils 2.10.
Cheers,
At 09:06 AM 1/12/01 +0800, you wrote:
>Hello,
>
>I have been subscribing from the XercesC mailing list since last year.
>But not until yesterday, I started using XercesC in solaris. I've been
>looking at the mailing list for pipol who have tried it in Solaris.
>
>I would like to ask help from you. Hope you'll have some time.
>
>I seem to have problems in compiling. It must be the libraries that I used.
>
>I believe you have tried this already.
>
>this is how my Makefile looks like:
>
>##################################
>## S T A R T M A K E F I L E ##
>
>##################################
>
>TARGET = sample
>SRCDIR = .
>CCX = g++ -g -O -fpic
>
>XERCES_DIR = /opt/xerces-c_1_2_0-SolCC
>ROGUEWAVE_DIR = /opt/rw/workspaces/SOLARIS26/SUNPRO42/12s
>
>INCLUDE
>= -I$(SRCDIR) -I$(XERCES_DIR)/include -I$(ROGUEWAVE_DIR)/rw -L/usr/local/lib
> -L$(XERCES_DIR)/lib -L$(ROGUEWAVE_DIR)/lib
>LIBS = -lxerces-c1_2 ---------> problem occurs in this library
>OBJS = \
> main.o
>
>$(TARGET): $(OBJS)
> $(CCX) $(INCLUDE) $(OBJS) -o $(TARGET) $(LIBS)
>
>all: $(OBJS)
> $(CCX) $(INCLUDE) $(OBJS) -o $(TARGET) $(LIBS)
>
>clean:
> rm -f $(OBJS) core sample
>
>%.o: %.cpp
> $(CCX) $(INCLUDE) -c $(<)
>
>sample : main.o
>main.o: main.cpp
>
>##############################
>## E N D M A K E F I L E ##
>
>##############################
>
>I have already set the needed environment variables...
>
>My sample program that I used is just simple:
>#include <iostream.h>
>#include <string.h>
>#include <stdlib.h>
>#include <dom/DOM.hpp>
>
>int main()
>{
>
>// DOM_Node aNode;
>// DOM_Text someText;
>
> cout << "\nHello World... Xerces is now running. \n\n";
>}
>
>
>
>
> > Hi - I had no problem building with gcc 2.95.2 under SPARC Solaris 7 or 8.
> > If I recall correctly, I didn't have to do anything special; just followed
> > the directions. I used a custom build of GCC with threads enabled and use
> > of GNU linker/assembler disabled.
> >
> > Jim
> >
> > Henrik Wendt's bits of Sun, 7 Jan 2001 translated to:
> >
> > >Hi
> > >
> > >Has anyone had any succes compiling xerces on solaris using g++?
> > >
> > >BR
> > >
> > >Henrik Wendt
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
*********************************************************
Paul B Duffy paduffy@cisco.com
Cisco Systems, Inc.
********************************************************
Re: Solaris and g++
Posted by "Ryan B. Roleda" <ry...@ntsp.nec.co.jp>.
Hello,
I have been subscribing from the XercesC mailing list since last year.
But not until yesterday, I started using XercesC in solaris. I've been
looking at the mailing list for pipol who have tried it in Solaris.
I would like to ask help from you. Hope you'll have some time.
I seem to have problems in compiling. It must be the libraries that I used.
I believe you have tried this already.
this is how my Makefile looks like:
##################################
## S T A R T M A K E F I L E ##
##################################
TARGET = sample
SRCDIR = .
CCX = g++ -g -O -fpic
XERCES_DIR = /opt/xerces-c_1_2_0-SolCC
ROGUEWAVE_DIR = /opt/rw/workspaces/SOLARIS26/SUNPRO42/12s
INCLUDE
= -I$(SRCDIR) -I$(XERCES_DIR)/include -I$(ROGUEWAVE_DIR)/rw -L/usr/local/lib
-L$(XERCES_DIR)/lib -L$(ROGUEWAVE_DIR)/lib
LIBS = -lxerces-c1_2 ---------> problem occurs in this library
OBJS = \
main.o
$(TARGET): $(OBJS)
$(CCX) $(INCLUDE) $(OBJS) -o $(TARGET) $(LIBS)
all: $(OBJS)
$(CCX) $(INCLUDE) $(OBJS) -o $(TARGET) $(LIBS)
clean:
rm -f $(OBJS) core sample
%.o: %.cpp
$(CCX) $(INCLUDE) -c $(<)
sample : main.o
main.o: main.cpp
##############################
## E N D M A K E F I L E ##
##############################
I have already set the needed environment variables...
My sample program that I used is just simple:
#include <iostream.h>
#include <string.h>
#include <stdlib.h>
#include <dom/DOM.hpp>
int main()
{
// DOM_Node aNode;
// DOM_Text someText;
cout << "\nHello World... Xerces is now running. \n\n";
}
> Hi - I had no problem building with gcc 2.95.2 under SPARC Solaris 7 or 8.
> If I recall correctly, I didn't have to do anything special; just followed
> the directions. I used a custom build of GCC with threads enabled and use
> of GNU linker/assembler disabled.
>
> Jim
>
> Henrik Wendt's bits of Sun, 7 Jan 2001 translated to:
>
> >Hi
> >
> >Has anyone had any succes compiling xerces on solaris using g++?
> >
> >BR
> >
> >Henrik Wendt
Re: Solaris and g++
Posted by Jim Cole <jc...@tecomac.com>.
Hi - I had no problem building with gcc 2.95.2 under SPARC Solaris 7 or 8.
If I recall correctly, I didn't have to do anything special; just followed
the directions. I used a custom build of GCC with threads enabled and use
of GNU linker/assembler disabled.
Jim
Henrik Wendt's bits of Sun, 7 Jan 2001 translated to:
>Hi
>
>Has anyone had any succes compiling xerces on solaris using g++?
>
>BR
>
>Henrik Wendt
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>