[vtkusers] Build error, VTK 6.2, Mac OS X 10.10.4, GCC 4.9
Sean McBride
sean at rogue-research.com
Wed Jul 8 13:48:14 EDT 2015
On Tue, 7 Jul 2015 17:09:31 +0000, Bosler, Peter Andrew said:
>/usr/include/dispatch/object.h:143:15: error: expected identifier or '('
>before '^' token
> typedef void (^dispatch_block_t)(void);
> ^
That caret indicates what's known as a "block", see:
<https://en.wikipedia.org/wiki/Blocks_(C_language_extension)>
Probably gcc 4.9 doesn't support blocks. Maybe a newer gcc does? Also, the system headers in OS 10.10 maybe now assume that the compiler supports blocks, whereas the 10.9 headers maybe had #if cases to build without block support. You could try building against the 10.9 SDK instead (use CMAKE_OSX_SYSROOT). Or use clang instead of gcc.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng sean at rogue-research.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
More information about the vtkusers
mailing list