From: martin@RADIOGAGA.HARZ.DE (Martin Vorlaender)
Subject: Re: Bug in cxx (?)
Date: 1997/02/25 [thread overview]
Message-ID: <33127542.524144494f47414741@radiogaga.harz.de> (raw)
In-Reply-To: 3311C590.7681@math.uni-muenster.de
Tobias,
I only know the DEC C++ compiler for OpenVMS; could be the same code
base though.
Tobias Gloth (gloth@uni-muenster.de) wrote:
: I try to port a software package that already runs on Linux, Solaris,
: IRIX and AIX (everywhere both with the native C++-Compiler and with
: g++) to OSF1.
[...]
: So I had a look at the man-page which told me that the compile-option
: -define_templates could help.
On VMS, it's not "could help"; this switch is required.
:
: * When I used "-define_templates", I get many strange error-messages
: like "file.cc:x: error: in this statement, "someMethod" is not a
: member of "variable". Looking at the code I thing that the compiler
: is wrong. No other compiler ever complained in such a way, so it
: looks like a cxx-problem to me. And I get lots of these errors.
Try to move the class definitions and declarations to a header file. The
DEC C++ compiler (at least on OpenVMS) resolves templates by generating
instantiated versions in temp files in a repository directory. To do
this, it must be able to include all of the necessary headers.
It could be a good idea to take a more thorough look at the cxx man page,
especially if it has a section on templated classes...
Hope it helps,
Martin
--
| Martin Vorlaender | VMS programmer
"UNIX is user friendly. | work: mv@pdv-systeme.de
It's just selective about | home: martin@radiogaga.harz.de
who its friends are." | http://www.harz.de/~martin/
prev parent reply other threads:[~1997-02-25 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-24 5:00 Bug in cxx (?) Tobias Gloth
1997-02-25 5:00 ` Martin Vorlaender [this message]
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