davidelijahcooper
Programmer
How do I call a function from Visual C++ which does not use MFC support from a project that uses MFC support. The error messages when trying to build the project (with MFC support) is as follows:
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
ConsoleDlg.obj : error LNK2001: unresolved external symbol "int __cdecl panel_tests(int)" (?panel_tests@@YAHH@Z)
..\\..\\Bin\\daswitch.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
daswitch.exe - 2 error(s), 2 warning(s)
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library
ConsoleDlg.obj : error LNK2001: unresolved external symbol "int __cdecl panel_tests(int)" (?panel_tests@@YAHH@Z)
..\\..\\Bin\\daswitch.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
daswitch.exe - 2 error(s), 2 warning(s)