[classad-users] Compiling classad with gcc 3.4


Date: Thu, 29 Dec 2005 21:47:06 -0500
From: John Chandy <john.chandy@xxxxxxxxx>
Subject: [classad-users] Compiling classad with gcc 3.4
I seem to have no problem compiling classad with gcc3.3.2. But, when I use gcc 3.4.2, 3.4.3, or 4.0.1, I get the following errors:

g++ -DUSE_POSIX_REGEX -Wall -g -DCLASSAD_DISTRIBUTION -w -c instantiations.C -o instantiations.o
instantiations.C:36: error: expected unqualified-id before ';' token
instantiations.C:39: error: expected unqualified-id before ';' token
instantiations.C:40: error: expected unqualified-id before ';' token
instantiations.C:43: error: expected unqualified-id before ';' token
instantiations.C:44: error: expected unqualified-id before ';' token
instantiations.C:47: error: expected unqualified-id before ';' token
instantiations.C:48: error: expected unqualified-id before ';' token
instantiations.C:49: error: expected unqualified-id before ';' token
instantiations.C:50: error: expected unqualified-id before ';' token
instantiations.C:51: error: expected unqualified-id before ';' token
instantiations.C:54: error: expected unqualified-id before ';' token
instantiations.C:55: error: expected unqualified-id before ';' token
instantiations.C:58: error: expected unqualified-id before ';' token
instantiations.C:59: error: expected unqualified-id before ';' token
instantiations.C:61: error: expected unqualified-id before ';' token
instantiations.C:65: error: expected unqualified-id before ';' token
instantiations.C:71: error: expected unqualified-id before ';' token
instantiations.C:72: error: expected unqualified-id before ';' token
instantiations.C:75: error: expected unqualified-id before ';' token
instantiations.C:78: error: expected unqualified-id before ';' token
instantiations.C:79: error: expected unqualified-id before ';' token
instantiations.C:83: error: expected unqualified-id before ';' token
instantiations.C:85: error: expected unqualified-id before ';' token
instantiations.C:88: error: expected unqualified-id before ';' token
instantiations.C:89: error: expected unqualified-id before ';' token
instantiations.C:92: error: expected unqualified-id before ';' token
instantiations.C:93: error: expected unqualified-id before ';' token
instantiations.C:94: error: expected unqualified-id before ';' token
instantiations.C:97: error: expected unqualified-id before ';' token
instantiations.C:98: error: expected unqualified-id before ';' token
instantiations.C:101: error: expected unqualified-id before ';' token
make: *** [instantiations.o] Error 1


I can fix some of the errors by putting "class" after the template keyword. But, I can't figure out how to get rid of the errors for the iterator instantiations. Any ideas?
[← Prev in Thread] Current Thread [Next in Thread→]