|
Can't build ICE 1.5.1 in cygwin
I can't build Ice 1.5.1 in cygwin (CYGWIN_NT-5.1 1.5.11)
when I use make to build , the error is :
$ make
config/Make.rules:166: config/Make.rules.CYGWIN_NT-5.1: No such file or directory
config/Make.rules:284: *** You need to define mkshlib in Make.rules.CYGWIN_NT-5.1. Stop.
then I copy Make.rules.Linux to Make.rules.CYGWIN_NT-5.1
but it occured another error:
$ make
making all in src
make[1]: Entering directory `/cygdrive/d/Ice-1.5.1/src'
making all in IceUtil
make[2]: Entering directory `/cygdrive/d/Ice-1.5.1/src/IceUtil'
c++ -c -I../../include -DICE_UTIL_API_EXPORTS -I.. -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT Unicode.cpp
cc1plus: warning: -fPIC ignored for target (all code is position independent)
In file included from Unicode.cpp:10:
../../include/IceUtil/Unicode.h:57: error: parse error before `&' token
../../include/IceUtil/Unicode.h:58: error: syntax error before `(' token
Unicode.cpp:23: error: parse error before `&' token
Unicode.cpp: In function `std::string IceUtil::wstringToString(...)':
Unicode.cpp:26: error: `str' undeclared (first use this function)
Unicode.cpp:26: error: (Each undeclared identifier is reported only once for
each function it appears in.)
Unicode.cpp:42: warning: comparison is always true due to limited range of data
type
Unicode.cpp:48: warning: comparison is always true due to limited range of data
type
Unicode.cpp: At global scope:
Unicode.cpp:65: error: syntax error before `::' token
Unicode.cpp:68: error: syntax error before `.' token
Unicode.cpp:71: error: parse error before `for'
Unicode.cpp:71: error: parse error before `;' token
Unicode.cpp:71: error: syntax error before `+=' token
Unicode.cpp:77: error: parse error before `if'
Unicode.cpp:80: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:80: error: conflicting types for `int len'
Unicode.cpp:70: error: previous declaration as `unsigned int len'
Unicode.cpp:81: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:81: error: redefinition of `int minval'
Unicode.cpp:75: error: `int minval' previously declared here
Unicode.cpp:82: error: parse error before `}' token
Unicode.cpp:90: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:90: error: redefinition of `int len'
Unicode.cpp:80: error: `int len' previously defined here
Unicode.cpp:91: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:91: error: redefinition of `int minval'
Unicode.cpp:81: error: `int minval' previously defined here
Unicode.cpp:92: error: parse error before `}' token
Unicode.cpp:96: error: ISO C++ forbids declaration of `len' with no type
Unicode.cpp:96: error: redefinition of `int len'
Unicode.cpp:90: error: `int len' previously defined here
Unicode.cpp:97: error: ISO C++ forbids declaration of `minval' with no type
Unicode.cpp:97: error: redefinition of `int minval'
Unicode.cpp:91: error: `int minval' previously defined here
Unicode.cpp:98: error: parse error before `}' token
Unicode.cpp:128: error: parse error before `;' token
Unicode.cpp:135: error: syntax error before `<<=' token
Unicode.cpp:136: error: syntax error before `|=' token
make[2]: *** [Unicode.o] Error 1
make[2]: Leaving directory `/cygdrive/d/Ice-1.5.1/src/IceUtil'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/cygdrive/d/Ice-1.5.1/src'
make: *** [all] Error 1
How can I do to build Ice in cygwin?
|