Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3548797
By: dempe

I MUST use bison to generate C++ classes and compile it in MSVC.
I started compiling the basic example of  the “Calc++ -- C++ Calculator”.
It works perfectly using gcc, but using MSVC in the declaration

class position
  {
  public:
    static const unsigned int initial_column =0;
…

I get the following error:

“error C2252: 'initial_column' : pure specifier can only be specified for
functions”

It means that the compiler “guess” that this is a function, not a variable.

Is there anyone that can help me with this problem?
Thanks


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to