Article View: gnu.g++.help
Article #282porting ccxx 1.2 to g++
From: vlsi
Date: Thu, 08 Nov 1990 08:00
Date: Thu, 08 Nov 1990 08:00
35 lines
1927 bytes
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
Technical Details
Message-ID:
<1957@tuvie>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!mcsun!tuvie!axel@vlsivie.tuwien.ac.atShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!uunet!mcsun!tuvie!axel@vlsivie.tuwien.ac.at From: vlsi@junior.tuwien.ac.at Newsgroups: gnu.g++.help,comp.lang.c++ Subject: porting ccxx 1.2 to g++ Message-ID: <1957@tuvie> Date: 8 Nov 90 08:00:50 GMT Sender: news@tuvie Reply-To: axel@vlsivie.tuwien.ac.at Followup-To: gnu.g++.help Organization: TU Wien, Vienna, Austria Lines: 35