alan@cogswell.Jpl.Nasa.Gov (Alan S. Mazer) (10/10/90)
I've got a problem which must be simple, but I sure can't figure it out. I've got lex code (created using lex++ under Sun OS 4.1) which I compile using CC, but cc (ld really, I suppose) can't resolve the references to yywrap: unix% make lex++ lexsrc mv lex.yy.c lex.yy.cc CC -g -sun4 -c lex.yy.cc CC +g lex.yy.cc: cc -c -I/usr/src/sun/CC/sun4/incl -g -sun4 lex.yy.c CC -g -Bstatic main.o y.tab.o lex.yy.o -o main -ll cc -o /tmp_mnt/george/ufs/alan/Jupiter/main -I/usr/src/sun/CC/sun4/incl -g -B static main.o y.tab.o lex.yy.o -ll -L/usr/src/sun/CC/sun4/ -lC Undefined _yywrap() *** Error code 2 make: Fatal error: Command failed for target `main' unix% If I nm lex.yy.o the only yywrap-like thing which turns up is _yywrap__Fv, so it's not surprising that there is some confusion. But why should it be called _yywrap__Fv? -- -- Alan # My aptitude test in high school suggested that ..!ames!elroy!alan # I should become a forest ranger. Take my alan@elroy.jpl.nasa.gov # opinions on computers with a grain of salt.