How do I use C++ in flex and bison?

后端 未结 5 1563
清歌不尽
清歌不尽 2020-12-16 06:03

I have a project for school where we need to use flex and bison. I want to use C++ so that I have access to STL and my own classes that I wrote. We were provided with the fo

5条回答
  •  清歌不尽
    2020-12-16 07:06

    You don't need to do anything with flex or bison to use C++, I have done it many times. You just have to make sure you use g++, not gcc.

    Your problems are with the Makefile, not the code.

提交回复
热议问题