[Cook] Compile/build problem with cook 2.22 under Cygwin
Larry E. Wagner
wagner at weru.ksu.edu
Thu Mar 20 18:46:28 EST 2003
I've run into a new problem attempting to build cook 2.22
under the Cygwin environment on a PC. I get the following
error message, but not being familiar with lex or bison,
I am not sure how to resolve the issue. I didn't get this
type of problem when building it under Solaris (and the
"hashline.gen.h" file is significantly different between
the two systems - I have version 1.35 of bison on Solaris
and 1.75 under Cygwin)
Enclosed below is the make error message I received.
I included the "lex.c" and "hashline.gen.h" files as
attachments.
Any recommendations on how to solve this problem?
Oh, I am running a fairly recent update of the Cygwin
environment which includes version 3.2 of gcc.
Thanks,
LEW
------------------------
[...]
gcc -Icook -Icommon -O2 -funroll-loops -c cook/id/variable.c
mv variable.o cook/id/variable.o
Expect no conflicts:
bison -y -d cook/parse.y
sed -e 's/[yY][yY]/parse_/g' -e '/<stdio.h>/d' -e \
'/<stdlib.h>/d' -e '/<stddef.h>/d' y.tab.c > \
cook/parse.gen.c
sed -e 's/[yY][yY]/parse_/g' -e 's/Y_TAB_H/parse_TAB_H/g' \
y.tab.h > cook/parse.gen.h
rm y.tab.c y.tab.h
gcc -Icook -Icommon -O2 -funroll-loops -c cook/lex.c
In file included from cook/lex.c:53:
cook/hashline.gen.h:35: parse error before numeric constant
make: *** [cook/lex.o] Error 1
78:wagner at HABOOB:/usr/local/src/cook-2.22>
37:wagner at HABOOB:/usr/local/src/cook-2.22/cook> bison -V
bison (GNU Bison) 1.75
Written by Robert Corbett and Richard Stallman.
--
Larry Wagner, Agricultural Engineer | E-mail: wagner at weru.ksu.edu
USDA-ARS Wind Erosion Research Unit | phone: (785) 537-5544
1515 College Ave. | fax: (785) 537-5507
Manhattan, KS 66502 | URL: http://www.weru.ksu.edu
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lex.c
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20030320/6f8d665c/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hashline.gen.h
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20030320/6f8d665c/attachment.asc>
More information about the Cook-users
mailing list