barronh / DSMACC

Dynamically Simple Model of Atmospheric Chemical Complexity
https://github.com/barronh/DSMACC/wiki
GNU General Public License v3.0
19 stars 7 forks source link

undefined reference to `yywrap' #1

Closed mzamyatina closed 5 years ago

mzamyatina commented 7 years ago

Hi, When I tried to compile KPP that is stored within DSMACC, I get following error:

<...>
  gcc y.tab.o lex.yy.o scanner.o scanutil.o kpp.o gen.o code.o code_c.o code_f77.o code_f90.o code_matlab.o debug.o -L/usr/lib/x86_64-linux-gnu/ -lfl -o kpp
lex.yy.o: In function `yylex':
lex.yy.c:(.text+0x1b46): undefined reference to `yywrap'
lex.yy.o: In function `input':
lex.yy.c:(.text+0x268a): undefined reference to `yywrap'
collect2: error: ld returned 1 exit status
make[2]: *** [kpp] Error 1
<...>

Any idea how to fix it?

barronh commented 7 years ago

Looks like the linker is not finding libel (the flex library). Note searching google for "undefined reference to `yywrap'" would help you.

On Mar 30, 2017, at 11:34 AM, Maria Zamyatina notifications@github.com wrote:

undefined reference to `yywrap'