Technical Q&AsQTW 94 - MSVC++ link error LNK4098 When Building QuickTime 3 for Windows Apps (21-September-98)Q I am getting the following link errors when building a QuickTime 3 for Windows application using the Microsoft Visual C++ development environment: LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:libraryWhat's going on? A QuickTime 3 for Windows is carefully linked with the multi-threaded version of the C runtime ( LIBCMT ). This can cause a conflict with your build settings. To avoid the conflict, you'll need to adjust your build settings to link with LIBCMT and recompile all your code (the runtime library is actually chosen in MSVC++ as a compile-time option, not a link-time option).
Go to the MSVC++ "Project", "Settings" dialog (ALT+F7 will work too), select the "C/C++" tab, then the "Code Generation" category. Under the popup menu for "Use run-time library", select "multi-threaded" or "multi-threaded DLL" as needed by your project. QuickTime 3 for Windows is built with "multi-threaded" selected.
If you don't use the IDE, use the C command-line option /MT.
Worldwide Developer Technical Support Technical Q&As Previous Question | Contents To contact us, please use the Contact Us page. |