[cfe-dev] [clang-cl] error: pasting [MACRO] formed an invalid preprocessing token

Astron B boldaster at gmail.com
Wed Jan 1 10:52:59 PST 2014


This is for the latest revision of clang. While compiling included boost
code using clang-cl:

C:\LLVM\\Release\bin>clang-cl -c code.cpp -IC:\\boost

C:\\boost/mpl/not.hpp(47,0) :  error: pasting formed
      'BOOST_PP_TUPLE_ELEM_E_3(', an invalid preprocessing token
      [-Winvalid-token-paste]

I found people recommending to solve the problem by disabling the error
using -Wno-invalid-token-paste so I tried it with the following result:

C:\\boost/mpl/or.hpp(34,12) :  error: operator 'defined' requires
      an identifier
#if defined(or)
            ^
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140102/05cdd521/attachment.html>


More information about the cfe-dev mailing list