c++ - libev-4.15 doesn't compile on OSX 10.8 -
i'm trying upgrade libev-3.8 (which compiles fine on osx 10.8) libev-4.15 , getting following error.
third_party/libev-4.15/ev.h:234: error: expected identifier before numeric constant third_party/libev-4.15/ev.h:234: error: expected `}' before numeric constant third_party/libev-4.15/ev.h:234: error: expected unqualified-id before numeric constant third_party/libev-4.15/ev.h:842: error: expected declaration before ‘}’ token
link ev.h: http://cvs.schmorp.de/libev/ev.h?revision=1.171&view=markup
my system config:
checking host system type... i386-apple-darwin12.3.0 checking target system type... i386-apple-darwin12.3.0 checking ld used gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld checking if linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) gnu ld... no checking how convert i386-apple-darwin12.3.0 file names i386-apple-darwin12.3.0 format... func_convert_file_noop checking how convert i386-apple-darwin12.3.0 file names toolchain format... func_convert_file_noop checking /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option reload object files... -r
fwiw, same config compiles fine on centos5.6.
turns out issue on osx "ev_error" declared in "ev.h" conflicts declared in "/usr/include/sys/event.h".
as fix, had forward declare ev variables used instead of including ev.h directly in 1 of source files. did trick.
Comments
Post a Comment