NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Lex error in C++ Sample LexYacc_1 Project

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Don Collett
Posted via mailing list.





PostPosted: Sun Mar 22, 2009 11:43 pm    Post subject: Lex error in C++ Sample LexYacc_1 Project Reply with quote

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.





PostPosted: Mon Mar 23, 2009 9:23 am    Post subject: Lex error in C++ Sample LexYacc_1 Project Reply with quote

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

PostPosted: Wed Apr 21, 2010 11:17 am    Post subject: Reply with quote

you need to edit custom build properties for token.l file
and change lex token.l -> flex token.l
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo