I have Symbol.h and Symbol.cpp working perfectly in a separate project
now I need to include it in a yacc file , that gives error c2143 , c2059
any idea what the problem can be
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, you should include offending source code in you question to get more helpful answers.
From which file those error happen? The yacc c/cpp file? or Symbol.cpp?
May be, macros defined in the yacc file are conflict with Symbol.h.
First check include order.
You could use /P compiler option. Resulting .i file will show plain source code with all the macros expanded.