Error 5 error LNK1120: 3 unresolved externals D:\Code\simpleTest-
mqo
\Debug\simpleTest-
mqo
.exe 1 1 simpleTest-
mqo
Error 4 error LNK2019: unresolved external symbol _
mqo
CallModel referenced in function “void __cdecl draw(void)” (?draw@@YAXXZ) D:\Code\simpleTest-
mqo
\simpleTest-
mqo
\
mqo
test. obj simpleTest-
mqo
Error 2 error LNK2019: unresolved external symbol _
mqo
CreateModel referenced in function “void __cdecl init(void)” (?init@@YAXXZ) D:\Code\simpleTest-
mqo
\simpleTest-
mqo
\
mqo
test. obj simpleTest-
mqo
Error 3 error LNK2019: unresolved external symbol _
mqo
Init referenced in function “void __cdecl init(void)” (?init@@YAXXZ) D:\Code\simpleTest-
mqo
\simpleTest-
mqo
\
mqo
test. obj simpleTest-
mqo
Warning 1 warning LNK4098: defaultlib ‘LIBCMTD’ conflicts with use of other libs; use /NODEFAULTLIB:library D:\Code\simpleTest-
mqo
\simpleTest-
mqo
\LINK simpleTest-
mqo
How to Fix this error?
Only the header files are included, but the corresponding library files are missing, resulting in functions that are only declared but not implemented.
The problem I have is that there are h and c files, but no lib and dll! !
I was puzzled and asked a colleague for help, and finally found the problem, I put the c file with the header file in include, when the link can not find the function definition, so the report error. The solution is to add both the h and c files to the project.