Open GoogleCodeExporter opened 8 years ago
Hm, sorry... - my c++ fu is low. I realize I have to fix the include path in
MakeFile. After doing that however still seems to be wrong. I get this output:
C:\emacs\grammar\bcui-emacs-read-only\grammar>make
g++ -g -I. -IC:\emacs\grammar\link42\include -c grammar.cc
In file included from C:/emacs/grammar/link42/include/link-includes.h:9,
from grammar.cc:28:
C:/emacs/grammar/link42/include/structures.h:89:1: warning: "assert" redefined
In file included from
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/cassert:48
from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/debug/debu
from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/stl_a
from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/char_
from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:46,
from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45
from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:4
from grammar.cc:26:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/assert.h:43:1:
warning: this is the locati
tion
In file included from C:/emacs/grammar/link42/include/link-includes.h:9,
from grammar.cc:28:
C:/emacs/grammar/link42/include/structures.h:477:8: warning: extra tokens at
end of #endif directive
grammar.cc: In function `int parseSentence(std::string&, Dictionary_s*&,
Parse_Options_s*&)':
grammar.cc:50: error: invalid conversion from `const char*' to `char*'
grammar.cc:50: error: initializing argument 1 of `Sentence_s*
sentence_create(char*, Dictionary_s*
grammar.cc:51: error: `sentence_split' was not declared in this scope
grammar.cc:74: error: `sentence_get_nth_word' was not declared in this scope
grammar.cc:75: error: `sentence_nth_word_has_disjunction' was not declared in
this scope
grammar.cc: In function `int main()':
grammar.cc:102: error: `dictionary_create_lang' was not declared in this scope
make: *** [grammar.o] Error 1
Original comment by lennart....@gmail.com
on 7 Aug 2010 at 1:54
Sorry for the late response (I need to get the email notifications set up
correctly).
This program (and the Makefile) has not been really tested on different
platforms with different compilers. So I won't be surprised that MinGW won't
work. I'll try to modify the program to not use iostream, and see if that
helps.
Thanks for reporting this issue!
Original comment by baoqiu@gmail.com
on 19 Aug 2010 at 3:57
hi,
was this issue ever resolved? I'm trying to install under ubuntu 12.05
thanks,
dave
Original comment by dokag...@gmail.com
on 20 Oct 2014 at 9:31
Original issue reported on code.google.com by
lennart....@gmail.com
on 7 Aug 2010 at 1:40