# OpenUSD 26.11.1 macro build errors

**URL:** <https://forum.aousd.org/t/openusd-26-11-1-macro-build-errors/3071>\
**Category:** Build and Deployment\
**Created:** [October 25, 2026, 5:42pm UTC](https://forum.aousd.org/t/openusd-26-11-1-macro-build-errors/3071 "2026-10-25T17:42:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanburkert](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/evanburkert/32/828_2.png) [@evanburkert](https://forum.aousd.org/u/evanburkert)\
**Post date:** [October 25, 2026, 5:42pm UTC](https://forum.aousd.org/t/openusd-26-11-1-macro-build-errors/3071/1 "2026-10-25T17:42:36Z")

</div>

Hello,

We are currently getting build errors when compiling our project against OpenUSD 26.11.1 with python support. Our build flags are as follows:

c++20, /Gd /MD and /Zc:preprocessor

We are getting the following errors:

1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(239,1): error C2065: ‘op\_’: undeclared identifier  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(239,1): error C2059: syntax error: ‘\>’  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(239,1): error C2332: ‘struct’: missing tag name  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(239,1): error C3306: ‘pxrInternal\_v0\_26\_11\_\_pxrReserved\_\_::pxr\_boost::python::detail::’: unnamed class template is not allowed  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(239,1): error C2913: explicit specialization; ‘pxrInternal\_v0\_26\_11\_\_pxrReserved\_\_::pxr\_boost::python::detail::’ is not a specialization of a class template  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(240,1): error C2065: ‘op\_’: undeclared identifier  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(240,1): error C2059: syntax error: ‘\>’  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(240,1): error C2332: ‘struct’: missing tag name  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(240,1): error C2913: explicit specialization; ‘pxrInternal\_v0\_26\_11\_\_pxrReserved\_\_::pxr\_boost::python::detail::’ is not a specialization of a class template  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(241,1): error C2065: ‘op\_’: undeclared identifier  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(241,1): error C2059: syntax error: ‘\>’  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(241,1): error C2332: ‘struct’: missing tag name  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)  
1\>D:\Workdir\toolbox\wntx64\OpenUSD\_SDK\26.11.1\include\pxr\external\boost\python\operators.hpp(241,1): error C2913: explicit specialization; ‘pxrInternal\_v0\_26\_11\_\_pxrReserved\_\_::pxr\_boost::python::detail::’ is not a specialization of a class template  
1\>(compiling source file ‘../../src/USDUtils/USDScriptingEngine.cpp’)

PXR\_BOOST\_PYTHON\_BINARY\_OPERATOR(and, rand, &)  
PXR\_BOOST\_PYTHON\_BINARY\_OPERATOR(xor, rxor, ^)  
PXR\_BOOST\_PYTHON\_BINARY\_OPERATOR(or, ror, |)

It appears these macros are trying to use reserved c++ keywords “and”, “xor” and “or” and the stdlib function rand.

---

<div class="post-metadata">

**Author:** ![JimAtkinson](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@JimAtkinson](https://forum.aousd.org/u/JimAtkinson)\
**Post date:** [November 3, 2026, 1:37am UTC](https://forum.aousd.org/t/openusd-26-11-1-macro-build-errors/3071/2 "2026-11-03T01:37:34Z")

</div>

Just a guess, but does your code happen `#define` the names `and`, `or`, and `xor`?

---

<div class="post-metadata">

**Author:** ![evanburkert](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/evanburkert/32/828_2.png) [@evanburkert](https://forum.aousd.org/u/evanburkert)\
**Post date:** [November 13, 2026, 4:48pm UTC](https://forum.aousd.org/t/openusd-26-11-1-macro-build-errors/3071/3 "2026-11-13T16:48:39Z")

</div>

No, those are built-in c++ keywords.
