I collect these types of errors in the MFC VS6 project when linking the application:
msvcrt.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in LIBC.lib(atox.obj)
I know what this means (function exists in 2 different libraries); To solve it, I had to exclude one of the two libraries ( msvcrt.lib or libc.lib ).
But if I do, there are all kinds of unresolved external errors. Therefore, I would like to use both libraries.
Is there a way to tell the linker that I want to use the _atoi function in libc.lib and not in msvcrt.lib (or vice versa)?
Any help or direction would be wonderful.
c ++ linker visual-studio-6
Mantichora
source share