[gnu.g++.help] porting ccxx 1.2 to g++

vlsi@junior.tuwien.ac.at (11/08/90)

Hello to all C++ wizards,

For various reasons I would like to port a couple of programs to
GNU g++. They all compiled well with the Glockenspiel ccxx 1.2 compiler
under HPollo SR10.2. With g++ 1.37.1 I face two problems:

- The statement 
  delete vt;
  where vt is a pointer to a class, which is declared but not defined,
  does not compile.
  Is it necessary for the delete operator to have the definition of a 
  class at compile time? Is this true for C++ 2.0 in general or only
  for g++ ?

- Bison produced files do not compile because of function prototyping.
  As I include C++ header files in the bison source file, it is not 
  straight forward to compile it with cc. 
  So, is there a good standard solution to this problem, or do I have
  to hack, e.g. awk processing the bison produced file or creating 
  cc compatible header files?

Thanks in advance for any hints or solutions
axel

        ^   | Axel Jantsch               | email: axel@vlsivie.tuwien.ac.at  
       / \  | Department of VLSI Design  |        axel@vlsivie.uucp
      /-|-\ | University of Technology   | fax:   (++43 1) 569697
     /  |__\| Vienna, Austria            | voice: (++43 1) 58801-8156
 <All opinions relate to my own world and have nothing to do with reality>
--

        ^   | Axel Jantsch               | email: axel@vlsivie.tuwien.ac.at  
       / \  | Department of VLSI Design  |        axel@vlsivie.uucp
      /-|-\ | University of Technology   | fax:   (++43 1) 569697