NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Don Collett Posted via mailing list.
|
Posted: Sun Mar 22, 2009 11:43 pm Post subject: Lex error in C++ Sample LexYacc_1 Project |
|
|
Ok, I have cygwin bison and flex installed. When I try and build the sample LexYacc_1 C++ project but the lex command fails. How do I fix Netbeans 6.5.1 so it uses flex (lex) and bison (yacc)?
| Quote: | Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and Settings\user\My Documents\NetBeansProjects\LexYacc_1
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
/usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/lexyacc_1.exe
make[2]: Entering directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
Running lex...
lex token.l
make[2]: lex: Command not found
make[2]: *** [lex.yy.c] Error 127
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
make: *** [.build-impl] Error 2
| Thanks. |
|
| Back to top |
|
 |
elfiocina Posted via mailing list.
|
Posted: Mon Mar 23, 2009 9:23 am Post subject: Lex error in C++ Sample LexYacc_1 Project |
|
|
Why don't you use the couple JFlex-Cup (Java language)?
Have a great day.
From: Don Collett ([email]address-removed[/email])
Sent: Monday, March 23, 2009 12:43 AM
To: address-removed ([email]address-removed[/email])
Subject: [nbusers] Lex error in C++ Sample LexYacc_1 Project
Ok, I have cygwin bison and flex installed. When I try and build the sample LexYacc_1 C++ project but the lex command fails. How do I fix Netbeans 6.5.1 so it uses flex (lex) and bison (yacc)?
| Quote: | Running "C:\cygwin\bin\make.exe -f Makefile CONF=Debug" in C:\Documents and Settings\user\My Documents\NetBeansProjects\LexYacc_1
/usr/bin/make -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
/usr/bin/make -f nbproject/Makefile-Debug.mk dist/Debug/Cygwin-Windows/lexyacc_1.exe
make[2]: Entering directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
Running lex...
lex token.l
make[2]: lex: Command not found
make[2]: *** [lex.yy.c] Error 127
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/user/My Documents/NetBeansProjects/LexYacc_1'
make: *** [.build-impl] Error 2
| Thanks. |
|
| Back to top |
|
 |
dvvord
Joined: 21 Apr 2010 Posts: 1
|
Posted: Wed Apr 21, 2010 11:17 am Post subject: |
|
|
you need to edit custom build properties for token.l file
and change lex token.l -> flex token.l |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|