If you're interested, we use a pretty sneaky technique in Xalan-C++ to
workaround the fact the xlC generates so many template instantiations. It
works something like this:
1. Remove the -qnotempinc switch from the command line.
2. Build the executable. The linker will report lots of undefined
symbols.
3. Create a new source file. For each undefined undefined template
class/function that the linker complains about, create an instantion of
that type in the file. Make sure you include the required header files
that define the templates.
4. Compile this file _with_ the -qnotempinc switch.
5. Link the resulting object file with the other object files.
Your library will be _much_ smaller. The initial Xalan-C++ shared library
was 45MB! The current shipping one is somewhere around 8.
Dave
Uthus Ivan
<Ivan.Uthus@fell To: "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>
esdata.no> cc: (bcc: David N Bertoni/CAM/Lotus)
Subject: RE: Xerces on AIX
03/29/2001 01:22
AM
Please respond
to xerces-c-dev
I have got the Xerces 1.4 lib working with xlC. I had some problems with
the new templates in some of the headers (when linking), but when I started
using the parameter -qnotempinc, everything works fine. I have not tried
to
build the lib myself.
By the way, an working implementation of STL is provided with the 3.6.4
version of the compiler (the current version is 3.6.6.6). But xlC has
awful
template support, our shared libraries are getting bigger an bigger the
more
we use templates. We are considering gcc, but haven't done the swith yet.
Ivan
-----Original Message-----
From: Belezebubba [mailto:[EMAIL PROTECTED]]
Sent: 29. mars 2001 04:29
To: [EMAIL PROTECTED]
Subject: Re: Xerces on AIX
Bovone
I have been working through that as well ... I have AIX and xlC and been
having fits ... I am slowly narrowing it down ... a good makefile would
help. I seem to be making the most progress with gcc since I was unable to
get STLport to work on my machine (more for Xalan).
I will be watching and passing along info as I can ... maybe we can solve
this!
Todd
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 1:09 PM
Subject: Re: Xerces on AIX
>
> The binary distribution is for the IBM xlC compiler, so you will not be
> able to use gcc.
>
> You can probably rebuild Xerces using gcc, although I don't know the
> details. Read the FAQ and the documentation first, then post any
questions
> you might have.
>
> Dave
>
>
>
>
> Bovone Stefano
> <Stefano.Bovone To:
[EMAIL PROTECTED]
> @elsag.it> cc: (bcc: David N
Bertoni/CAM/Lotus)
> Subject: Xerces on AIX
> 03/28/2001
> 09:37 AM
> Please respond
> to xerces-c-dev
>
>
>
>
>
> Hello everybody,
>
> I have download le libraries for AIX (as binary) but I have many problems
> linking them on my project.
> They seem not to be 'correct library' for AIX.
>
> Then I got the source file, but I have problem compiling them on AIX
> (problem with makefile).
>
> I'm using a GNU C++ (g++) compiler.
>
> I hope someone can help me.
>
> Thanks in advance. Bye.
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]