BozzieBear / flexpp-bisonpp

Automatically exported from code.google.com/p/flexpp-bisonpp
0 stars 0 forks source link

mac os x make fail #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
under mac os x 10.7.5

./configure
make

error:
ld: warning: option -s is obsolete and being ignored
Undefined symbols for architecture x86_64:
  "_flexscan", referenced from:
      _make_tables in gen.o
      _yylex in yylex.o
  "_set_input_file", referenced from:
      _flexinit in main.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [flex++] Error 1

Original issue reported on code.google.com by aps...@gmail.com on 20 Jun 2013 at 7:32

GoogleCodeExporter commented 8 years ago
I was getting a similar error (on macos 10.6.8). In the output of 'make' I 
noticed the line
   /bin/sh: firstflex: command not found

I modified the Makefile rule for scan.c and added $(srcdir) in front of 
$(FIRSTFLEX)
           $(srcdir)/$(FIRSTFLEX) ....

That seems to fix the problem. Delete scan.c before you try make again. 

Original comment by agabal...@gmail.com on 15 Feb 2014 at 12:15