delorie.com/archives/browse.cgi | search |
From: | "Andrew Crabtree" <andrewc AT rosemail DOT rose DOT hp DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: compiler error |
Date: | Fri, 22 May 1998 11:23:42 -0700 |
Organization: | Hewlett-Packard, Roseville |
Lines: | 30 |
Message-ID: | <6k4frh$6qg$1@rosenews.rose.hp.com> |
References: | <6k48d5$12a$1 AT orudios DOT magnet DOT at> |
NNTP-Posting-Host: | ros51675cra.rose.hp.com |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Elias Pschernig wrote in message <6k48d5$12a$1 AT orudios DOT magnet DOT at>... >for the first time i've now tried to write a .cc program, >// the program: a.cc >class a {}; >a *b; >c() {new a=b;} >output from compiler: You should find out what version of gcc you have (gcc -v). Probably 2.7. Try upgrading to 2.8.1. You also have problems in the code. Look for gcc281.zip and its c++ equivalents. If you check the archives you should find the announcement. Its only been out a month or so. HTH Andy gcc -c a.cc a.cc: In function `int c()': a.cc:3: no matching function for call to `a::a (a *&)' a.cc:1: candidates are: a::a(const a &) a.cc:1: a::a()
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |