From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,e239b42d4a8451b1 X-Google-Attributes: gid1164f8,public From: martin@RADIOGAGA.HARZ.DE (Martin Vorlaender) Subject: Re: Bug in cxx (?) Date: 1997/02/25 Message-ID: <33127542.524144494f47414741@radiogaga.harz.de>#1/1 X-Deja-AN: 221256179 Distribution: world X-Posting-Software: UUPC/extended 1.12j inews (25May94 07:51) References: <3311C590.7681@math.uni-muenster.de> Reply-To: MARTIN@RADIOGAGA.HARZ.DE Newsgroups: comp.sys.dec 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/