From: William S F. <ws...@fu...> - 2010-03-15 21:45:05
|
Krzysztof Drewniak wrote: > On Sun, 2010-02-28 at 19:41 -0800, Sri wrote: >> You should check what is special about line 231 in curses.h. >> >> I dont know the specific issue here, but if you havent tried yet try using the "-E" option with swig to see what is having trouble with. >> >> I had posted reg a "error in input (3)" problem that turned to be a limitatio in 1.3.40, but was fixed in latest in SVN. You may refer to that post & see if it helps. >> >> Goodluck. >> >> >> --- On Sun, 2/28/10, Krzysztof Drewniak <krz...@gm...> wrote: >> >>> From: Krzysztof Drewniak <krz...@gm...> >>> Subject: [Swig-user] syntax error in input >>> To: swi...@li... >>> Date: Sunday, February 28, 2010, 10:47 AM >>> I am trying to develop common lisp >>> bindings to ncurses. I am getting the >>> following error >>> >>> /usr/include/curses.h:231: Error: Syntax error in >>> input(1). >>> >>> Here is ncurses.i >>> >>> %module ncurses >>> %{ >>> #include<curses.h> >>> #include<panel.h> >>> %} >>> >>> %include "/usr/include/curses.h" >>> %include "/usr/include/panel.h" >>> >>> Any help? >>> >>> >>> -----Inline Attachment Follows----- >>> >>> ------------------------------------------------------------------------------ >>> Download Intel® Parallel Studio Eval >>> Try the new software tools for yourself. Speed compiling, >>> find bugs >>> proactively, and fine-tune applications for parallel >>> performance. >>> See why Intel Parallel Studio got high marks during beta. >>> http://p.sf.net/sfu/intel-sw-dev >>> -----Inline Attachment Follows----- >>> >>> _______________________________________________ >>> Swig-user mailing list >>> Swi...@li... >>> https://lists.sourceforge.net/lists/listinfo/swig-user >>> > swig -E simply dumps the file, and quits. swig -v > outputsLangSubDir: uffi > Search paths: > ./ > ./swig_lib/uffi/ > /usr/share/swig1.3/uffi/ > ./swig_lib/ > /usr/share/swig1.3/ > Preprocessing... > Starting language-specific parse... > /usr/include/curses.h:231: Error: Syntax error in input(1). > > I am running ubuntu's swig 1.1.36. > Try SVN? Indeed, try a later version, we try to fix syntax errors where not impossibly hard. You'll need to cut down the code until you can send us a testcase of the problem. Look around line 231 to see if you can see something unusual, especially non standard C/C++. William |