This error is due to the AutoCC option being selected in the project setting for simulation. The AutoCC option should only be set for bit accurate simulation when header file "ap_cint.h is used on C projects.
This error will not be issued in 2012.1 because AutoESL will only observe AutoCC option for C project.