Flex++ in Ubuntu (Linux)

  • #1
918
16
I just loaded Ubuntu (Linux) onto a spare hard drive. It was relatively painless. I am posting this message from it.

I am having a problem with using Flex++. I wonder if anyone has come up against this before. The .L and the Makefile are quite small and I could post them if it would help. However, the error message is:

/usr/include/FlexLexer.h:113: error: redefinition of ‘class yyFlexLexer’
/usr/include/FlexLexer.h:113: error: previous definition of ‘class yyFlexLexer’

and I wonder if that is enough to go on for a first stab. It looks to me as if there were two "#include <FlexLexer.h>" directives hanging around and not properly protected with "#ifndef yyFlexLexer" directives in the .h file. If I remove the "#include" directive from my .L file, I get too many error messages.
 

Answers and Replies

Related Threads on Flex++ in Ubuntu (Linux)

Replies
2
Views
2K
Replies
5
Views
9K
  • Last Post
Replies
2
Views
2K
Replies
2
Views
5K
  • Last Post
Replies
9
Views
7K
  • Last Post
2
Replies
38
Views
2K
  • Last Post
Replies
6
Views
45K
  • Last Post
Replies
3
Views
3K
  • Last Post
Replies
12
Views
2K
Replies
9
Views
1K
Top