From: Charlie Zender <zender@uci.edu>
Subject: IBM xlC and Compaq cxx problems, possibly related
Date: Tue, 16 Oct 2001 17:49:49 -0700 [thread overview]
Message-ID: <3BCCD5AD.70109@uci.edu> (raw)
Hi,
I have beegn migrating a large'ish C++ program from GNU/Linux
platform where it was developed to IBM AIX and to Compaq Alpha
supercomputers. I need a few pointers as the process is not
as straightforward as I had hoped.
First, the IBM compiler, xlC, compiles all the source files
fine, but has problems linking. It does not seem to find
templated functions unless the definitions (i.e., the real
code) are placed in header files, where normally I would
just place the function prototypes (and not the functions
themselves). GNU g++ used to have this limitation, I remember,
but, as of 2.96, does not seem to suffer from this limitation
anymore. So my question is, is there a compiler/linker switch
on the IBM that will allow me to keep the function definitions
in the .cc files and not have to move them into the .hh files?
Or can I somehow forward declare the templates I will actually
be using so the compiler knows which ones to build so the linker
can find them?
Second, the Compaq Alpha compiler cxx compiles all the files in my
program fine except for the main routine, where it just never finishes
the compilation. I've let the machine (which is fast) chew up
hours trying to compile this code, and, although the CPU usage is
heavy, it never finishes compiling. I'm not using optimization
switches either. Is this a known problem with the cxx compiler,
or might I be doing something wrong? Anyone else encountered this?
Might this problem be the Compaq cxx symptom of the template location
discussed above?
Thanks,
Charlie
--
Charlie Zender, zender at uci dot edu, (949) 824-2987, Department of
Earth System Science, University of California, Irvine CA 92697-3100
next reply other threads:[~2001-10-17 0:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-17 0:49 Charlie Zender [this message]
2001-10-17 12:16 ` IBM xlC and Compaq cxx problems, possibly related Andrew Duane USG
2001-10-17 19:37 ` Charlie Zender
2001-10-17 20:42 ` Kenneth Block
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox