From: Michael Schuster Newsgroups: comp.os.msdos.djgpp Subject: c++ compiler question Date: Tue, 10 Nov 1998 10:36:08 +0100 Organization: Regionales Rechenzentrum Erlangen, Germany Lines: 40 Message-ID: <36480907.1FE0FD6B@eev.e-technik.uni-erlangen.de> NNTP-Posting-Host: eev6.e-technik.uni-erlangen.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.05 [de] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi! here another difference I've encountered when switching djgpp from 2.7.xx to 2.8.1 which is probably a change due to a new "new". The following programm compiles fine with 2.7.2.1 but not with 2.8.1 #include class ax { int* w; public: ax(int elements,int dummy) { w=new int[elements]; } }; class b { ax* e; public: b (int row,int elements,int dummy) { e= new ax[row](elements,dummy); // does the trouble } }; int main() { b jds(12,12,152); } Is it a c++ error (so my fault) or did they change something to "new"? Gruesse Michi