I am using a 2.6.5 system with Glibc of 04-23-2004 with GCC 3.4.0. I get the following errors when compling cdrdao.
depfile='.deps/Cddb.Po' tmpdepfile='.deps/Cddb.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/pccts -march=pentium2 -mmmx -O2 -pipe -c -o Cddb.o `test -f 'Cddb.cc' || echo './'`Cddb.cc Cddb.cc: In member function `int Cddb::queryDb(Cddb::QueryResults**)': Cddb.cc:593: error: array bound forbidden after parenthesized type-id Cddb.cc:593: note: try removing the parentheses around the type-id Cddb.cc: In member function `int Cddb::readDbEntry(int)': Cddb.cc:1247: error: array bound forbidden after parenthesized type-id Cddb.cc:1247: note: try removing the parentheses around the type-id Cddb.cc:1248: error: array bound forbidden after parenthesized type-id Cddb.cc:1248: note: try removing the parentheses around the type-id make[2]: *** [Cddb.o] Error 1 make[2]: Leaving directory `/usr/src/cdrdao-1.1.8/trackdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/cdrdao-1.1.8' make: *** [all] Error 2
Any suggestions on how to correct this problem.
All fixed, thank you.
These were all related to 'new' expressions such as
ptr = new (const char*)[n];
being obsoleted. Replaced by
ptr = new const char*[n];
Note i was unable to compile gcdmaster with gcc 3.4, because gtkmm 2.2 won't compile with it. I haven't tried with gtkmm 2.4 yet.
-denis
Log in to post a comment.
I am using a 2.6.5 system with Glibc of 04-23-2004 with GCC 3.4.0. I get the following errors when compling cdrdao.
depfile='.deps/Cddb.Po' tmpdepfile='.deps/Cddb.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/pccts -march=pentium2 -mmmx -O2 -pipe -c -o Cddb.o `test -f 'Cddb.cc' || echo './'`Cddb.cc
Cddb.cc: In member function `int Cddb::queryDb(Cddb::QueryResults**)':
Cddb.cc:593: error: array bound forbidden after parenthesized type-id
Cddb.cc:593: note: try removing the parentheses around the type-id
Cddb.cc: In member function `int Cddb::readDbEntry(int)':
Cddb.cc:1247: error: array bound forbidden after parenthesized type-id
Cddb.cc:1247: note: try removing the parentheses around the type-id
Cddb.cc:1248: error: array bound forbidden after parenthesized type-id
Cddb.cc:1248: note: try removing the parentheses around the type-id
make[2]: *** [Cddb.o] Error 1
make[2]: Leaving directory `/usr/src/cdrdao-1.1.8/trackdb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/cdrdao-1.1.8'
make: *** [all] Error 2
Any suggestions on how to correct this problem.
All fixed, thank you.
These were all related to 'new' expressions such as
ptr = new (const char*)[n];
being obsoleted. Replaced by
ptr = new const char*[n];
Note i was unable to compile gcdmaster with gcc 3.4, because gtkmm 2.2 won't compile with it. I haven't tried with gtkmm 2.4 yet.
-denis