I am sure this is a very simple fix but I cannot find the answer using google/SO. I have a C++ program that works and compiles flawlessly with MSVC 2019 but as part of my dev-ops, want to use cl.exe to compile. After much debugging, I have found stringstream to be the offender but I am not sure what lib I am missing that is causing the error.
Update: I have found this thread naming a workaround although they did not figure out the option. Would still like anyones input that could solve it.
which library contains _is_c_termination_complete
Here are the libs I am currently using:
Kernel32.lib Ole32.lib OleAut32.lib ucrt.lib libvcruntime.lib libcmt.lib libcpmt.lib
Here is the error:
libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol _is_c_termination_complete referenced in function __scrt_dllmain_uninitialize_c
libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_initialize referenced in function __scrt_initialize_crt
libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_uninitialize referenced in function __scrt_uninitialize_crt
libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_uninitialize_critical referenced in function __scrt_dllmain_uninitialize_critical
libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_thread_attach referenced in function __scrt_dllmain_crt_thread_attach
libcmt.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_thread_detach referenced in function __scrt_dllmain_crt_thread_detach
Bin\\test.dll : fatal error LNK1120: 6 unresolved externals
Any ideas are welcome. Thank you