PTAMM Compilation error

asked 2014-02-27 00:06:38 -0500

Anurag Sai gravatar image

updated 2016-10-24 08:35:58 -0500

ngrennan gravatar image

Hi, I have been using PTAMM for several months now. Everything was great until I made few changes to System.cc and all of a sudden I keep getting the following error during the compilation:

In file included from System.cc:11:0:
MapSerializer.h:39:30: error: expected identifier before ‘(’ token
MapSerializer.h:39:30: error: expected ‘}’ before ‘(’ token
MapSerializer.h:39:30: error: expected unqualified-id before ‘void’
MapSerializer.h:39:30: error: expected ‘)’ before ‘void’
MapSerializer.h:39:30: error: expected ‘)’ before ‘void’
MapSerializer.h:41:38: error: invalid declarator before ‘&’ token
MapSerializer.h:41:38: error: expected ‘)’ before ‘&’ token
MapSerializer.h:42:21: error: expected constructor, destructor, or type conversion before ‘;’ token
MapSerializer.h:47:22: error: ‘virtual’ outside class declaration
MapSerializer.h:49:3: error: expected unqualified-id before ‘private’
MapSerializer.h:53:5: error: ‘MapStatus’ does not name a type
MapSerializer.h:54:5: error: ‘MapStatus’ does not name a type
MapSerializer.h:58:5: error: ‘MapStatus’ does not name a type
MapSerializer.h:71:5: error: ‘MapStatus’ does not name a type
MapSerializer.h:91:3: error: expected unqualified-id before ‘private’
MapSerializer.h:94:25: error: ‘PTAMM::mvpMaps’ declared as reference but not initialized
In file included from System.cc:11:0:
MapSerializer.h:110:1: error: expected declaration before ‘}’ token

I even undid all the changes and compiled PTAMM again but still the error persists. I remember downgrading the gcc version sometime ago. Is that the reason for this error? Please help me!

Thanks,

edit retag flag offensive close merge delete

Comments

Can you add a portion of the file that the first error is coming from? Lines 30-50 of your MapSerializer.h would be helpful.

ahendrix gravatar image ahendrix  ( 2014-02-27 05:55:16 -0500 )edit