Thousands of errors missing basic libraries, all thrown by files in include folder, while making a shared library for Android with C++

MichaelG 1 Reputation point
2021-06-06T12:24:42.25+00:00

Hello,
I'm trying to make an Android Plugin with C++ for OpenCV using Visual Studio 2019. While I'm successfully linking to all the library's lib files and include directory, I'm getting over 1000 errors telling me that those files are missing basic libraries. stddef.h, stdarg.h, size_t, and many others.

Note: I do not get these errors when I make a windows/x64 project solution for a Windows plugin, but whenever I use the c++/Android/Dynamic Shared Library template, all of these basic files seem to not link properly to the project. My Android NDK is 16rb (previously 13rb).

EDIT: changed to OpenCV 4.5.2 and Android NDK r23, but I still have 789 errors from the include folder. Which NDK should I be using with this? It seems like all the ones I've tried have different errors.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,904 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.