🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by vlsi Thu, 08 Nov 1990 08:00
porting ccxx 1.2 to g++
#282
Author: vlsi
Date: Thu, 08 Nov 1990 08:00
35 lines
1927 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads