Linking errors (symbol already defined) with a specific Windows user account

Aurélien Ducournau 1 Reputation point
2022-09-19T11:09:15.033+00:00

Hello.

Recently, some linking errors (no compilation errors) occur while building some C++ projects (with Visual Studio 2017). Errors look like this:

legacy_stdio_definitions.lib(legacy_stdio_definitions.obj) : error LNK2005: __imp_fprintf already defined in libcholmod.lib(libcholmod.dll)

Other projects that do not use additional libs (like legacy_stdio_definitions.lib in the above example) are building without any problem. The strangest thing is that the projects are building well when using another Windows user account. So the problem seems linked with my user account. Where does that come from? I already tried to completely reinstall Visual Studio 2017, erased my user files in %AppData%, or remove some user environment variables, none of the above worked.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
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,690 questions
{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.