RE: [gpsim] How to build gpsim for Debian

"Borut Razem" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <20050721154512.BFDR2073.edge1.siol.net@toto>
Hi Xiaofan,

the problem is with flex: version 2.5.31 is buggy :-(

You have 2 possibilities to solve the problem:
- use flex 2.4.4 or
- apply the following patch to scan.ll (already done in gpsim CVS, scan.ll
version 1.38):

--------- cut here -----------
cvs -z9 diff -r 1.37 -r 1.38 -u -- scan.ll scan.ll (in directory
C:\cvs\gpsim\gpsim\cli\)
Index: scan.ll
===================================================================
RCS file: /cvsroot/gpsim/cli/scan.ll,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- scan.ll	14 Dec 2004 15:12:27 -0000	1.37
+++ scan.ll	9 Jan 2005 12:59:59 -0000	1.38
@@ -277,6 +277,11 @@
 
 %%
 
+/* make it work with flex 2.4.31 */
+#ifndef yytext_ptr
+#define yytext_ptr yytext
+#endif
+
 #define MAX_STACK_LEVELS  16
 static int input_stack_index=0;
 YY_BUFFER_STATE input_stack[MAX_STACK_LEVELS];

--------- cut here -----------

Borut
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.