hi all , I am writing a lexer subcomponment and that
subcomponment should output the lex as a C++ object.
But the problem is that lex generates just C source file
and that C file should call some static functions that
defined in some C++ helder file.I just use the
#ifdef _CPLUS_PLUS to turn off the class codes
when compiling the C source file. But those functions are
implements as a C++ source file , Is this possible ?
Is I just use the helder file and just call , is this will work ?
or should I use the keep those functions inside a block
?
I need your ideas____
Thanks in advance.