0

I am using boost libraries (v1.77.0) to create a .dll in Windows and a .so in Android (using C++ native code and Clang 5.0 in Visual Studio 2019): enter image description here

My code needs to be in C++ 17 and in Windows build it works and generates correctly the .dll (also using boost libraries), this is the configuration for Android: enter image description here

But when I try to build to Android I get this error:

class template partial specialization contains a template parameter that cannot be deduced; this partial specialization will never be used [-Wunusable-partial-specialization]
C:\boost_1_77_0\boost\type_traits\detail\is_function_cxx_11.hpp 37

class template partial specialization contains a template parameter that cannot be deduced; this partial specialization will never be used [-Wunusable-partial-specialization]
C:\boost_1_77_0\boost\type_traits\detail\is_member_function_pointer_cxx_11.hpp 102

And a lot of errors more but they are only on these files. I think that maybe it is because the CXX 11 (ref to C++ 11?). But they work on my Windows build so what could be the problem? Is there any way to re-define the header of those boost files to avoid that problem?

  • There are warnings not errors BTW. – Jarod42 Nov 18 '21 at 08:49
  • @Jarod42 but they appear as an error, as the only errors that are in code. Is there any other thing I need to do to disable these warnings or see the real problem? – María Román Nov 18 '21 at 08:55
  • 1
    For your reference: [What is a nondeduced context](https://stackoverflow.com/questions/25245453/what-is-a-nondeduced-context). Do you treat warnings as errors in setting? – Minxin Yu - MSFT Nov 18 '21 at 09:52
  • @MinxinYu-MSFT no I don't treat warnings as errors in settings, also the only warnings I have are from "unkown pragma ignored" because I use some shared code with pragma regions to divide the code – María Román Nov 18 '21 at 10:00

0 Answers0