Menu ▾ ▴

#1 compile error

open
nobody
None
5
2006-10-07
2006-10-07
ken777
No

It seems yy_current_buffer isn't defined in
issgen/scan_isa.cpp.

I just added definition and compile ok.

*** 201,206 ****
--- 201,208 ----
};

+ static yy_buffer_state *yy_current_buffer;
+
/* We provide macros for accessing buffer states in
case in the
* future we want to put the buffer states in a more
general
* "scanner state".
***************

Error message was
---------------------------------
make[2]: Entering directory
yy_current_buffer`/home/take/src/SimIt-MIPS-1.0/issgen'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -O3
-fomit-frame-pointer -finline-limit-1500 -msse2
-mfpmath=sse -MT scan_isa.o -MD -MP -MF
".deps/scan_isa.Tpo" -c -o scan_isa.o scan_isa.cpp; \
then mv -f ".deps/scan_isa.Tpo"
".deps/scan_isa.Po"; else rm -f ".deps/scan_isa.Tpo";
exit 1; fi
scan_isa.cpp: In member function 'virtual int
isa_FlexLexer::yylex()':
scan_isa.cpp:578: error: 'yy_current_buffer' was not
declared in this scope
scan_isa.cpp:824: error: 'yy_current_buffer' was not
declared in this scope
scan_isa.cpp:847: error: 'yy_current_buffer' was not
declared in this scope
scan_isa.cpp:619: warning: label 'find_rule' defined
but not used
scan_isa.cpp: In constructor
'isa_FlexLexer::isa_FlexLexer(std::istream*,
std::ostream*)':
scan_isa.cpp:964: error: 'yy_current_buffer' was not
declared in this scope
scan_isa.cpp: In destructor 'virtual
isa_FlexLexer::~isa_FlexLexer()':
scan_isa.cpp:976: error: 'yy_current_buffer' was not
declared in this scope
scan_isa.cpp: In member function 'virtual void
isa_FlexLexer::switch_streams(std::istream*,
std::ostream*)':
scan_isa.cpp:983: error: 'yy_current_buffer' was not
declared in this scope

~~~~~ skip ~~~~~~~
-------------------------------------

Discussion


Log in to post a comment.