简体   繁体   中英

C++ Linker Errors - error LNK2005: ... already defined

I have a project that builds correctly in x64 bit but throws errors looking like this in 32bit: libeay32-s-MT.lib(err.obj): error LNK2005: _ERR_error_string already defined in libcrypto.lib(libcrypti-1_1.dll)

There's a list of these but they all look similar. Not sure if this is related with the fact that it throws the error in 32 bit, or whether it's something else in the configuration. Anyone had something similar? I am using VS2017 and Windows.

The error message indicates that the problem comes from the library file. Please check whether there is a problem with duplicate definitions and the compatibility of the library. I suggest you read this document , which provides some solutions for your reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM