octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling development sources on mac


From: John W. Eaton
Subject: Re: compiling development sources on mac
Date: Fri, 18 Dec 2009 14:46:01 -0500

On 18-Dec-2009, Rob Mahurin wrote:

| On Thu, Dec 17, 2009 at 06:47:21PM -0500, Ben Abbott wrote:
| 
| > Rob,
| > 
| > I came across the thread below.
| > 
| >     
http://old.nabble.com/string.h:82:-error:-expected-`,'-or-`...'-before-"__dest"-tt17579480.html#a17579907
| > 
| > Which prompted me to add the line below at the top of md5.c ... My
| > error was different from yours. My build failed at md5.c, not with
| > lex.cc
| > 
| >     #include <config.h>
| > 
| > I needed to add this line to the top of ...
| > 
| >     liboctave/md5.c
| >     src/gl2ps.c
| > 
| > With those two changes, my build completed without error. However it
| > doesn't run due to dylib conflicts which, I understand, are specific
| > to my configuration.
| 
| Thanks.  Today I have to modify those files as well.
| 
| If I insert an include statement at the top of lex.cc, the
| compile continues.  However, lex.cc is not part of the developer
| sources:
| 
|       $ rm src/lex.cc && make -C src lex.cc
|       /bin/sh ../build-aux/ylwrap lex.ll lex.octave_.c lex.cc -- flex -I -I
| 
| The generated lex.cc includes <config.h> about twelve hundred lines
| in, where the contents of lex.ll appear.  But <string.h> is included
| in the generated output up near the top of the file.  Is there a
| "right" way to include <config.h> near the top of lex.cc, since that's
| apparently a gnulib requirement?
| 
| > p.s. as this discussion related to the developers sources, I've
| > moved it to the maintainers mail list.
| 
| Thanks.  In my original message I described a second failure in
| builtins.cc.  My build now stops there.  Should I re-post details to
| this list?

Maybe the easiest way around this problem would be to create a file
that contains

  #ifdef HAVE_CONFIG_H
  #include <config.h>
  #endif
  #include "lex.cc"

and then compile that instead of lex.cc.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]