From: Grzegorz J. <ja...@he...> - 2002-12-09 00:48:06
|
On Sat, 7 Dec 2002, James Michael DuPont wrote: > > --- 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? 2.5.12 does not. You have to get CVS snapshot. > 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 If this is gcc-3.x, then I think I know what it is. gcc-3.x is more Standard compliant. As far as I remember Pavel has fixed this problem, so CVS snapshot should compile ok. Regards Grzegorz > 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 > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |