Как решить Winnt.h E0338 в сообществе Visual Studio 2022 [закрыто]C++

Программы на C++. Форум разработчиков
Anonymous
Как решить Winnt.h E0338 в сообществе Visual Studio 2022 [закрыто]

Сообщение Anonymous »

После обновления сообщества Visual Studio 2022 я получаю несколько ошибок E0338 (на winnt.h), когда я включаю Windows.h, эти ошибки: < /p>

Код: Выделить всё

more than one instance of overloaded function "_interlockedbittestandset" has 'C' linkage

more than one instance of overloaded function "_interlockedbittestandreset" has 'C' linkage

more than one instance of overloaded function "_InterlockedIncrement16" has 'C' linkage

more than one instance of overloaded function "_InterlockedDecrement16" has 'C' linkage
< /code>
etc.
Минимальный репродуктивный код (main.c, скомпилированный как tp), является следующим: < /p>
#include "cf6_chess.h"
#include 
int main()
{
    return 0;
}
, где cf6_chess.h является запатентованным заголовком. https://stefanobolli.blogspot.com/2010/ ... nkage.html, но ни один из них не работал.
Есть ли обновленный метод для решения этих ошибок?>

Подробнее здесь: https://stackoverflow.com/questions/796 ... -community

Вернуться в «C++»