<div dir="ltr">So then with:<div><br></div><div>extra-compile-args = ["-std=c++11"]</div><div><br></div><div>you get this for the .c files:</div><div><br></div><div>error: invalid argument '-std=c++11' not allowed with 'C'<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 8, 2022 at 5:47 AM Patrick Stinson <<a href="mailto:patrickkidd@gmail.com">patrickkidd@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Yeah, ok. It compiles fine on ubuntu. I think this is actually a problem in the default c++ spec for clang 14.0.0 on macos 12.6, for example these warnings and errors:<div><br></div><div>warning: scoped enumerations are a C++11 extension [-Wc++11-extensions]</div><div>error: unknown type name 'constexpr'<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 7, 2022 at 12:25 AM Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On 06/10/2022 19:25, Patrick Stinson wrote:<br>
> I have a pure C++ sip extension and it looks like sip-build is using <br>
> the C<br>
> compiler for everything. My other extension that sues pyqt-builder <br>
> seems to<br>
> work. Is there a way to get sip to use the c++ compiler for cpp files <br>
> while<br>
> also correctly compiling sip's C files like sip_array.c etc?<br>
> <br>
> Using sip-6.7.1.<br>
> <br>
> Cheers,<br>
> -Patrick<br>
<br>
By default (ie. when you are not using PyQt-builder) SIP will use <br>
setuptools to do the build. It will call the correct compiler depending <br>
on the filename extension. Works fine for me.<br>
<br>
Phil<br>
</blockquote></div>
</blockquote></div>