Using YACC with C++ in Kdevelop
Anyone have any thoughts on using YACC with C++ (that is I am using C++ objects in the YACC code snippets) with the KDevelop environment? KDevelop recognizes the YACC .y file but wants to compile the output as C code. Not sure how to convince it to compile as C++. I am porting some code from Windows that was written this way so I would like to minimize changes if possible. Thanks!
|
The way to do this is to rename the yacc.y file to yacc.yy and the lex.l file to lex.ll. This will cause bison and flex to generate .cc files which will be compiled as c++.
|
All times are GMT -5. The time now is 09:22 PM. |