Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPUs.

__align define interferes with libc++

Simon_B_4
Beginner
135 Views

Hi, I'm using embree common+rtcore and the __align(...) define in common/sys/platform.h interferes with standard library headers in http://libcxx.llvm.org/, causing compile errors in files that include standard library headers (e.g. <vector>) after embree headers.

Renaming __align to __embree_align resolves the issue.  Could I suggest that the macros defined by common/sys/platform.h are made more unique to avoid this kind of issue?  Thanks!

0 Kudos
0 Replies
Reply