From: James M. D. <mdu...@ya...> - 2002-12-07 16:56:43
|
--- Youssef HASSOUN <yha...@dc...> wrote: > Hi mike, > OKAY, the gc-code can be compiled with <make -fMakefile.dj> under > cygwin-bash-shell. gctest.exe can be generated under and it works. > How to compile the src-code to get occ.exe ? > Which Makefile shold one Gregorz setup the autoconf before. Does opencc not use autoconf? you should run ./configure make make test make install > use. I tried the Makefile.Linux (unser src/Unix) and got the > following error message: > $ make -fMakefile.Linux > g++ -O -g -c -o buffer.o ../buffer.cc > In file included from ../types.h:131, > from ../buffer.h:41, > from ../buffer.cc:38: > ../gc/gc_cpp.h:132:1: warning: "_cdecl" redefined > ../buffer.cc:1:1: warning: this is the location of the previous > definition > In file included from ../buffer.cc:38: > ../buffer.h:80: `ostream' was not declared in this scope > ../buffer.h:80: parse error before `,' token > ../buffer.h:106: parse error before `&' token > ............ > > > #include <iostraeam> in bufer.h doesn't help. > Any idea ? > youssef I cannot test this myself right now, have not compiled opencc in a long time. > ../buffer.h:80: `ostream' was not declared in this scope you need to make sure that you have your ostream. Do this : 1. make CFLAGS='-save-temps --verbose' > buildlog.txt 2>&1 collect all the .i files and the output 2.1 find / -name iostream 2.2 find / -name iostream\*.h 2.3 find / -name ostream\*.h See where the files are, store in var PATHTOIOSTREAM 3. run make CFLAGS='-I$PATHTOIOSTREAM' HTH mike ===== James Michael DuPont http://introspector.sourceforge.net/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |