You are trying to link with incompatible libraries.
ImportantThe run-time libraries now contain ctictives to prevent mixing different types. you'll receive this warning if you try to use different types or debug and non-DEBUG Versions of the run-time library in the same program. for example, if you compiled one file to use one kind of run-time library and another file to use another kind (for example, single-threaded versus multithreaded) and tried to link Them, you'll get this warning. You shocould compile all source files to use the same run-time library. In a word, there is a conflict between Lib. Some libs to be imported must be deleted.
| Version |
Type |
Library Used |
Ignored Library |
| R release |
Single thread |
Libc. Lib |
Libcmt. Lib, msvcrt. Lib, libcd. Lib, libcmtd. Lib, msvcrtd. Lib |
| Multithreading |
Libcmt. Lib |
Libc. Lib, msvcrt. Lib, libcd. Lib, libcmtd. Lib, msvcrtd. Lib |
| Multithreading with DLL |
Msvcrt. Lib |
Libc. Lib, libcmt. Lib, libcd. Lib, libcmtd. Lib, msvcrtd. Lib |
| D debug |
Single thread |
Libcd. Lib |
Libc. Lib, libcmt. Lib, msvcrt. Lib, libcmtd. Lib, msvcrtd. Lib |
| Multithreading |
Libcmtd. Lib |
Libc. Lib, libcmt. Lib, msvcrt. Lib, libcmtd. Lib, msvcrtd. Lib |
| Multithreading with DLL |
Msvcrtd. Lib |
Libc. Lib, libcmt. Lib, msvcrt. Lib, libcd. Lib, libcmtd. Lib |
For example, to compile a single-threaded project of the release version, add the following parameter to the linker command line:/nodefaultlib: libcmt. LIB/nodefaultlib: msvcrt. LIB/nodefaultlib: libcd. LIB/nodefaultlib: libcmtd. LIB/nodefaultlib: msvcrtd. lib
Of course, it can also be configured through the development environment of vc6.0. Select project-> setting. In the displayed project Setting dialog box, click the link tag, select input from the category drop-down menu, and click Ignore libraries below: in the input box, enter the corresponding libs in the ignored library box. Pay attention to the current build version when you enter it. libs are separated by commas. "Ingore all default libraries" cannot be checked.