GLFW: LNK2001 unresolved external symbol __imp_calloc - c++

I was following this OpenGL tutorial on YouTube https://youtu.be/45MIykWJ-C4. but instead of following everything exactly, I tried to setup GLFW using premake. then I tried running with just the glfwInit() and received these errors
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_joystick.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(wgl_context.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(egl_context.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(osmesa_context.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(vulkan.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_window.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(init.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(window.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp_calloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_init.obj) 1
Error LNK2019 unresolved external symbol __imp_strncpy referenced in function glfwWindowHintString OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(window.obj) 1
Error LNK2001 unresolved external symbol __imp_strncpy OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp_strncpy OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_strncpy OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_joystick.obj) 1
Error LNK2019 unresolved external symbol __imp__wassert referenced in function _glfwCreateContextOSMesa OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(osmesa_context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(vulkan.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(wgl_context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(egl_context.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(window.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_thread.obj) 1
Error LNK2001 unresolved external symbol __imp__wassert OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2019 unresolved external symbol __imp_strcspn referenced in function glfwUpdateGamepadMappings OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2019 unresolved external symbol __imp_strspn referenced in function glfwUpdateGamepadMappings OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2019 unresolved external symbol __imp_realloc referenced in function glfwUpdateGamepadMappings OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(input.obj) 1
Error LNK2001 unresolved external symbol __imp_realloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_monitor.obj) 1
Error LNK2001 unresolved external symbol __imp_realloc OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK2019 unresolved external symbol __imp_wcscpy referenced in function createMonitor OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(win32_monitor.obj) 1
Error LNK2019 unresolved external symbol __imp_powf referenced in function glfwSetGamma OpenGl_sandbox C:\dev\c++\projects\OpenGL\OpenGl_sandbox\glfw3.lib(monitor.obj) 1
Error LNK1120 8 unresolved externals OpenGl_sandbox C:\dev\c++\projects\OpenGL\bin\Debug-windows-x86_64\OpenGl_sandbox\OpenGl_sandbox.exe 1
, and here is the premake code:
workspace "OpenGl"
architecture "x86_64"
startproject "OpenGl"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
IncludeDirs = {}
IncludeDirs["GLFW"] = "vendor/GLFW/include"
IncludeDirs["glad"] = "vendor/glad/include"
LibsDirs = {}
LibsDirs["GLFW"] = "vendor/GLFW/bin"
project "OpenGl_sandbox"
location "OpenGl_sandbox"
kind "ConsoleApp"
language "C++"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/src/**.c",
"%{prj.name}/res/**.**",
}
includedirs
{
IncludeDirs,
}
libdirs
{
LibsDirs,
}
links
{
"glfw3.lib",
"opengl32.lib"
}
filter "system:windows"
cppdialect "C++latest"
staticruntime "On"
systemversion "latest"
defines
{
}
filter "configurations:Debug"
defines "DEBUG"
symbols "On"
filter "configurations:Release"
defines "RELEASE"
optimize "On"
filter "configurations:Dist"
defines "DIST"
optimize "On"
can anyone tell me why this happens? I tried following this tutorial before and it work for me perfectly but this time it didn't. I'm guessing this might be a problem with the OpenGL file itself, which causes it not to link properly. thanks!

Related

I'm having troubles compiling c++ application with GLFW and vulkan libraries using clang. How can i solve this?

I'm trying to compile my c++ test application with GLFW and vulkan using clang on windows, but it fails every time. I get a lot of link errors and any of suggested solutions I could find didn't work. It seems the problem is with the GLFW library files, but I can't find a way to solve it.
Batch script I use for compiling my code:
REM Build script for the test application.
#ECHO OFF
SetLocal EnableDelayedExpansion
REM Get a list of all the .cpp files.
SET cFilenames=
FOR /R %%f in (*.cpp) do (
SET cFilenames=!cFilenames!"%%f"
)
SET assembly=test
SET compilerFlags=-g -std=c++17
REM Define what to include.
SET includeFlags=-Isrc -I../test/include -I%VULKAN_SDK%/Include -IE:/Libraries/GLFW/include -IE:/Libraries/json-3.11.2/include -IE:/Libraries/stb-master
REM Define what to link.
SET linkerFlags=-L%VULKAN_SDK%/Lib -lvulkan-1 -LE:/Libraries/GLFW/lib-vc2022 -lglfw3_mt
REM Define some extra stuff.
SET defines=-D_DEBUG
REM Build the project.
ECHO "Building %assembly%%..."
clang++ %cFilenames% %compilerFlags% -o ../bin/%assembly%.exe %defines% %includeFlags% %linkerFlags%
The errors I receive after I try to build the application:
"Building test..."
libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(StlLCMapStringA.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(xwcsxfrm.obj) : error LNK2001: unresolved external symbol _malloc_dbg
main-929849.o : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _malloc_dbg
libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(StlLCMapStringA.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(xwcsxfrm.obj) : error LNK2001: unresolved external symbol _free_dbg
main-929849.o : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _free_dbg
libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _CrtDbgReport
main-929849.o : error LNK2001: unresolved external symbol _CrtDbgReport
libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol _CrtDbgReport
libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _CrtDbgReport
libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _CrtDbgReport
libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _calloc_dbg
main-929849.o : error LNK2001: unresolved external symbol _calloc_dbg
libcpmtd.lib(_tolower.obj) : error LNK2001: unresolved external symbol _calloc_dbg
libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _calloc_dbg
libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _calloc_dbg
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_TranslateMessage referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_TranslateMessage
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_DispatchMessageW referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_DispatchMessageW
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_PeekMessageW referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_PeekMessageW
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_RegisterDeviceNotificationW referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_UnregisterDeviceNotification referenced in function _glfwPlatformTerminate
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_CreateWindowExW referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_CreateWindowExW
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_DestroyWindow referenced in function _glfwPlatformTerminate
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_DestroyWindow
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_ShowWindow referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_ShowWindow
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_ToUnicode referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_MapVirtualKeyW referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_MapVirtualKeyW
glfw3_mt.lib(win32_init.obj) : error LNK2019: unresolved external symbol __imp_SystemParametersInfoW referenced in function _glfwPlatformInit
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_SystemParametersInfoW
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_CreateDCW referenced in function _glfwPlatformGetGammaRamp
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_DeleteDC referenced in function _glfwPlatformGetGammaRamp
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_GetDeviceCaps referenced in function _glfwGetMonitorContentScaleWin32
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_GetDeviceGammaRamp referenced in function _glfwPlatformGetGammaRamp
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_SetDeviceGammaRamp referenced in function _glfwPlatformSetGammaRamp
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_GetDC referenced in function _glfwGetMonitorContentScaleWin32
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_GetDC
glfw3_mt.lib(wgl_context.obj) : error LNK2001: unresolved external symbol __imp_GetDC
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_ReleaseDC referenced in function _glfwGetMonitorContentScaleWin32
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_ReleaseDC
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_ChangeDisplaySettingsExW referenced in function _glfwPlatformGetVideoModes
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_EnumDisplaySettingsW referenced in function _glfwPlatformGetVideoMode
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_EnumDisplaySettingsExW referenced in function _glfwPlatformGetMonitorPosglfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_EnumDisplayDevicesW referenced in function _glfwPollMonitorsWin32
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_GetMonitorInfoW referenced in function _glfwPlatformGetMonitorWorkarea
glfw3_mt.lib(win32_window.obj) : error LNK2001: unresolved external symbol __imp_GetMonitorInfoW
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_EnumDisplayMonitors referenced in function _glfwPollMonitorsWin32
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CreateBitmap referenced in function createIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CreateRectRgn referenced in function updateFramebufferTransparency
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DeleteObject referenced in function createIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CreateDIBSection referenced in function createIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_TrackMouseEvent referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetMessageTime referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SendMessageW referenced in function _glfwPlatformSetWindowIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_PostMessageW referenced in function _glfwPlatformPostEmptyEvent
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_WaitMessage referenced in function _glfwPlatformWaitEvents
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DefWindowProcW referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_UnregisterClassW referenced in function _glfwUnregisterWindowClassWin32
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_RegisterClassExW referenced in function _glfwRegisterWindowClassWin32
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetLayeredWindowAttributes referenced in function _glfwPlatformGetWindowOpacity
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetLayeredWindowAttributes referenced in function _glfwPlatformSetWindowOpacity
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_FlashWindow referenced in function _glfwPlatformRequestWindowAttention
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_MoveWindow referenced in function _glfwPlatformSetWindowAspectRatio
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetWindowPos referenced in function _glfwPlatformMaximizeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetWindowPlacement referenced in function createNativeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetWindowPlacement referenced in function createNativeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_IsWindowVisible referenced in function _glfwPlatformMaximizeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_IsIconic referenced in function _glfwPlatformWindowIconified
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_BringWindowToTop referenced in function _glfwPlatformCreateWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_IsZoomed referenced in function _glfwPlatformWindowMaximized
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_OpenClipboard referenced in function _glfwPlatformGetClipboardString
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CloseClipboard referenced in function _glfwPlatformGetClipboardString
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetClipboardData referenced in function _glfwPlatformSetClipboardString
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetClipboardData referenced in function _glfwPlatformGetClipboardString
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_EmptyClipboard referenced in function _glfwPlatformSetClipboardString
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetFocus referenced in function _glfwPlatformCreateWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetActiveWindow referenced in function _glfwPlatformPollEvents
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetKeyState referenced in function _glfwPlatformPollEvents
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetCapture referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_ReleaseCapture referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_MsgWaitForMultipleObjects referenced in function _glfwPlatformWaitEventsTimeout
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetSystemMetrics referenced in function _glfwPlatformMaximizeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetForegroundWindow referenced in function _glfwPlatformCreateWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetPropW referenced in function createNativeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetPropW referenced in function _glfwPlatformPollEvents
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_RemovePropW referenced in function _glfwPlatformDestroyWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetWindowTextW referenced in function _glfwPlatformSetWindowTitle
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetClientRect referenced in function _glfwPlatformGetFramebufferSize
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetWindowRect referenced in function _glfwPlatformSetWindowAspectRatio
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_AdjustWindowRectEx referenced in function _glfwPlatformGetWindowFrameSizeglfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetCursorPos referenced in function _glfwPlatformPollEvents
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetCursor referenced in function _glfwPlatformSetCursor
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetCursorPos referenced in function _glfwPlatformGetCursorPos
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_ClientToScreen referenced in function _glfwPlatformGetWindowPos
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_ScreenToClient referenced in function _glfwPlatformGetCursorPos
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_WindowFromPoint referenced in function cursorInContentArea
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_ClipCursor referenced in function updateClipRect
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetRect referenced in function _glfwPlatformGetWindowFrameSize
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_OffsetRect referenced in function _glfwPlatformMaximizeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_PtInRect referenced in function cursorInContentArea
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetWindowLongW referenced in function _glfwPlatformGetWindowOpacity
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_SetWindowLongW referenced in function _glfwPlatformMaximizeWindow
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetClassLongPtrW referenced in function _glfwPlatformSetWindowIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_LoadCursorW referenced in function _glfwPlatformSetCursor
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DestroyIcon referenced in function _glfwPlatformDestroyCursor
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_LoadImageW referenced in function _glfwPlatformCreateStandardCursor
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CreateIconIndirect referenced in function createIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_MonitorFromWindow referenced in function _glfwPlatformGetWindowContentScale
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_GetRawInputData referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_RegisterRawInputDevices referenced in function _glfwPlatformSetRawMouseMotion
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragQueryFileW referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragQueryPoint referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragFinish referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragAcceptFiles referenced in function createNativeWindow
glfw3_mt.lib(win32_joystick.obj) : error LNK2019: unresolved external symbol __imp_GetRawInputDeviceInfoA referenced in function deviceCallback
glfw3_mt.lib(win32_joystick.obj) : error LNK2019: unresolved external symbol __imp_GetRawInputDeviceList referenced in function deviceCallback
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_ChoosePixelFormat referenced in function _glfwInitWGL
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_DescribePixelFormat referenced in function _glfwCreateContextWGL
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_SetPixelFormat referenced in function _glfwCreateContextWGL
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_SwapBuffers referenced in function swapBuffersWGL
libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol _wcsdup_dbg referenced in function _Getctype
libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol _wcsdup_dbg
libcpmtd.lib(locale.obj) : error LNK2019: unresolved external symbol _realloc_dbg referenced in function "private: static void __cdecl std::locale::_Locimp::_Locimp_Addfac(class std::locale::_Locimp *,class std::locale::facet *,unsigned __int64)" (?_Locimp_Addfac#_Locimp#locale#std##CAXPEAV123#PEAVfacet#23#_K#Z)
libcpmtd.lib(StlLCMapStringA.obj) : error LNK2019: unresolved external symbol _CrtDbgReportW referenced in function _freea_crt
libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW
libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW
..\bin\test.exe : fatal error LNK1120: 104 unresolved externals
clang++: error: linker command failed with exit code 1120 (use -v to see invocation)
Already tried to reinstall clang, MSVCRT and GLFW. I had some clear answers, when I asked the OpenAI chatbot, but it didn't solve my problem either. Any ideas how can I solve this problem?
EDIT
I managed to solve almost all of the errors, but I still get the GLFW unresolved external symbol error.
The updated batch script I use to compile the application:
REM Build script for the test application.
#ECHO OFF
SetLocal EnableDelayedExpansion
REM Get a list of all the .cpp files.
SET cFilenames=
FOR /R %%f in (*.cpp) do (
SET cFilenames=!cFilenames!"%%f"
)
SET assembly=test
SET compilerFlags=-g -std=c++17
REM Define what to include.
SET includeFlags=-Isrc -I../test/include -I%VULKAN_SDK%/Include -IE:/Libraries/GLFW/include -IE:/Libraries/json-3.11.2/include -IE:/Libraries/stb-master
REM Define what to link.
SET linkerFlags=-luser32 -L%VULKAN_SDK%/Lib -lvulkan-1 -LE:/Libraries/GLFW/lib-vc2022 -lglfw3_mt -lmsvcrtd -llibcmtd
REM Define some extra stuff.
SET defines=-D_DEBUG -Xlinker /NODEFAULTLIB:libcmt
REM Build the project.
ECHO "Building %assembly%%..."
clang++ %cFilenames% %compilerFlags% -o ../bin/%assembly%.exe %defines% %includeFlags% %linkerFlags%
The errors that still remain:
"Building test..."
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_CreateDCW referenced in function _glfwPlatformGetGammaRamp
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_DeleteDC referenced in function _glfwPlatformGetGammaRamp
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_GetDeviceCaps referenced in function _glfwGetMonitorContentScaleWin32
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_GetDeviceGammaRamp referenced in function _glfwPlatformGetGammaRamp
glfw3_mt.lib(win32_monitor.obj) : error LNK2019: unresolved external symbol __imp_SetDeviceGammaRamp referenced in function _glfwPlatformSetGammaRamp
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CreateBitmap referenced in function createIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CreateRectRgn referenced in function updateFramebufferTransparency
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DeleteObject referenced in function createIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_CreateDIBSection referenced in function createIcon
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragQueryFileW referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragQueryPoint referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragFinish referenced in function windowProc
glfw3_mt.lib(win32_window.obj) : error LNK2019: unresolved external symbol __imp_DragAcceptFiles referenced in function createNativeWindow
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_ChoosePixelFormat referenced in function _glfwInitWGL
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_DescribePixelFormat referenced in function _glfwCreateContextWGL
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_SetPixelFormat referenced in function _glfwCreateContextWGL
glfw3_mt.lib(wgl_context.obj) : error LNK2019: unresolved external symbol __imp_SwapBuffers referenced in function swapBuffersWGL
..\bin\test.exe : fatal error LNK1120: 17 unresolved externals
clang++: error: linker command failed with exit code 1120 (use -v to see invocation)
Any ideas?
I managed to solve this problem by including 6 libraries and excluding 1.
For anyone who has the same problem as me, here is my batch script for compiling my code:
REM Build script for the test application.
#ECHO OFF
SetLocal EnableDelayedExpansion
REM Get a list of all the .cpp files.
SET cFilenames=
FOR /R %%f in (*.cpp) do (
SET cFilenames=!cFilenames!"%%f"
)
SET assembly=test
SET compilerFlags=-g -std=c++17
REM Define what to include.
SET includeFlags=-Isrc -I../test/include -I%VULKAN_SDK%/Include -IE:/Libraries/GLFW/include -IE:/Libraries/json-3.11.2/include -IE:/Libraries/stb-master
REM Define what to link.
SET linkerFlags=-luser32 -lkernel32 -lgdi32 -lshell32 -L%VULKAN_SDK%/Lib -lvulkan-1 -LE:/Libraries/GLFW/lib-vc2022 -lglfw3_mt -lmsvcrtd -llibcmtd
REM Define some extra stuff.
SET defines=-D_DEBUG -Xlinker /NODEFAULTLIB:libcmt
REM Build the project.
ECHO "Building %assembly%%..."
clang++ %cFilenames% %compilerFlags% -o ../bin/%assembly%.exe %defines% %includeFlags% %linkerFlags%

Getting unresolved external symbol errors for libcurl_a.lib in VC++

I have a project in VC++ where I am using libcurl library. Even after adding the library in Additional Dependencies I am facing around 150 unresolved external errors, all majorly for libcurl_a.lib file.
Error -
1>OLDNAMES.lib(open.obi): warning LNK4049: locally defined symbol open imported
1>libcurl_a.lib(mime.obj): error LNK2019: unresolved external symbol imp__feof referenced
1>libcurl_a.lib(mime.obj): error LNK2019: unresolved external symbol imp_access referenced in function Curl_mime_duppart in function _read_part content
1>OLDNAMES.lib(access.obi): error LNK2001: unresolved external symbol imp access
1>libcurl_a.lib(mime.obj): error LNK2019: unresolved external symbolimp_ stat64 referenced in function Curl_nine duppart 1>libcurl_a.lib(strerror.obj): error LNK2019: unresolved external symbolimp_strerror referenced in function Curl strerror
1>libcurl_a.lib(url.obj): error LNK2001: unresolved external symbol imp_strerror
1>1ibcurl_a.lib(telnet.obj): error LNK2001: unresolved external symbol imp_strncpy
1>1ibcurl_a.lib(ftp.obj): error LNK2001: unresolved external symbolimp_strncpy
1>libcurl_alib(curl_sspi.obj): error LNK2001: unresolved external symbolimp_strncpy
1>1ibcurl_s.lib(strerror.obj): error LNK2001: unresolved external symbolimp_strncpy
1>1ibcurl_a.lib(vtis.obj): error LNK2001: unresolved external symbol imp_strncpy 1>1ibcurl_.1ib(url.obj): error LNK2001: unresolved external symbolimp_strncpy
1>libcurl_a.lib(schannel.obj) error LNK 2001: unresolved external symbol_imp_strncpy
1>libcuri_a.lip(strerror.obj) : error LNK2019: unresolved external symbol imp sys_nerr referenced in function Curi strerror
1>libcurl_a.lib(warnless.obj): error LNK2019: unresolved external symbol 1 OLDNAMES1ib(read.obi): error LNK2001: unresolved external symbolimp_read imp_read referenced in function curl_read
111bcurt a.lib/warmless.obj) error LNK2019: unresolved external symbol_imp_write referenced in function curl, weite
1 OLDNAMES-110(write.obi): error LNK2001: unresolved external symbolimp_write
I have solved this problem by building the library with RTLIBCFG=static option.

Linker errors in building Vivek's Virtual Camera on Windows 10?

I am trying to build Vivek's Virtual Camera on Windows 10.
For that I need to have Win7Samples/multimedia/directshow/baseclasses
I have downloaded baseclasses and built it using Visual Studio 2019.
Now I am ready to build Virtual camera filter. I followed few requisite steps
git clone https://github.com/roman380/tmhare.mvps.org-vcam
cd tmhare.mvps.org-vcam\Filters
Then I tried to open Filters.dsp in Visual Studio 2019 which asked me to do one-way upgrade
Added C:\Users\alokm\tmp\Windows-classic-samples\Samples\Win7Samples\multimedia\directshow\baseclasses in Additional Include Directories
Added C:\Users\alokm\tmp\Windows-classic-samples\Samples\Win7Samples\multimedia\directshow\baseclasses\Debug to Addition Library Directories
After all these steps I tried to build by hitting Build >> Build Solution
But I am getting lot of linker errors.
Errors in text format:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(combase.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllentry.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol _memcmp Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amvideo.obj) 1
Error LNK2019 unresolved external symbol _memset referenced in function "public: virtual long __thiscall CVCamStream::GetMediaType(int,class CMediaType *)" (?GetMediaType#CVCamStream##UAEJHPAVCMediaType###Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol _memset Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol _memset Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol _memset Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2019 unresolved external symbol __imp__rand referenced in function "public: virtual long __thiscall CVCamStream::FillBuffer(struct IMediaSample *)" (?FillBuffer#CVCamStream##UAEJPAUIMediaSample###Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxlist.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\Filters.obj 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxutil.obj) 1
Error LNK2001 unresolved external symbol ___CxxFrameHandler3 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(combase.obj) 1
Error LNK2019 unresolved external symbol _wcsrchr referenced in function "wchar_t * __cdecl wcsrchr(wchar_t *,wchar_t)" (?wcsrchr##YAPA_WPA_W_W#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllentry.obj) 1
Error LNK2001 unresolved external symbol _wcsrchr Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2019 unresolved external symbol __imp____stdio_common_vswprintf referenced in function __vsnwprintf_l Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllentry.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vswprintf Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vswprintf Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(dllsetup.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vswprintf Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxutil.obj) 1
Error LNK2019 unresolved external symbol __imp____stdio_common_vsprintf referenced in function __vsnprintf_l Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxdebug.obj) 1
Error LNK2019 unresolved external symbol _memcpy referenced in function _AMGetWideString#8 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(wxutil.obj) 1
Error LNK2001 unresolved external symbol _memcpy Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(mtype.obj) 1
Error LNK2001 unresolved external symbol _memcpy Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol _memcpy Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2001 unresolved external symbol __purecall Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(amfilter.obj) 1
Error LNK2001 unresolved external symbol __purecall Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2019 unresolved external symbol __imp___wtoi referenced in function "public: virtual long __stdcall CSource::FindPin(wchar_t const *,struct IPin * *)" (?FindPin#CSource##UAGJPB_WPAPAUIPin###Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\strmbasd.lib(source.obj) 1
Error LNK2019 unresolved external symbol __CrtDbgReport referenced in function __CRT_RTC_INIT Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(init.obj) 1
Error LNK2019 unresolved external symbol __CrtDbgReportW referenced in function __CRT_RTC_INITW Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(init.obj) 1
Error LNK2019 unresolved external symbol __callnewh referenced in function "void * __cdecl operator new(unsigned int)" (??2#YAPAXI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(new_scalar.obj) 1
Error LNK2019 unresolved external symbol _malloc referenced in function "void * __cdecl operator new(unsigned int)" (??2#YAPAXI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(new_scalar.obj) 1
Error LNK2019 unresolved external symbol _strcpy_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure##YAXPAXPBD#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol _strcat_s referenced in function "void __cdecl _RTC_StackFailure(void *,char const *)" (?_RTC_StackFailure##YAXPAXPBD#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol ___stdio_common_vsprintf_s referenced in function __vsprintf_s_l Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(error.obj) 1
Error LNK2019 unresolved external symbol ___std_exception_copy referenced in function "public: __thiscall std::exception::exception(class std::exception const &)" (??0exception#std##QAE#ABV01##Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(throw_bad_alloc.obj) 1
Error LNK2019 unresolved external symbol ___std_exception_destroy referenced in function "public: virtual __thiscall std::exception::~exception(void)" (??1exception#std##UAE#XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(throw_bad_alloc.obj) 1
Error LNK2019 unresolved external symbol __CxxThrowException#8 referenced in function "void __cdecl __scrt_throw_std_bad_alloc(void)" (?__scrt_throw_std_bad_alloc##YAXXZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(throw_bad_alloc.obj) 1
Error LNK2019 unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *)" (??3#YAXPAX#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(delete_scalar.obj) 1
Error LNK2019 unresolved external symbol __wmakepath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned int)" (?GetPdbDllPathFromFilePath##YAHPB_WPA_WI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol __wsplitpath_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned int)" (?GetPdbDllPathFromFilePath##YAHPB_WPA_WI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol _wcscpy_s referenced in function "int __cdecl GetPdbDllPathFromFilePath(wchar_t const *,wchar_t *,unsigned int)" (?GetPdbDllPathFromFilePath##YAHPB_WPA_WI#Z) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol ___vcrt_GetModuleFileNameW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll##YAPAUHINSTANCE__##XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol ___vcrt_GetModuleHandleW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll##YAPAUHINSTANCE__##XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol ___vcrt_LoadLibraryExW referenced in function "struct HINSTANCE__ * __cdecl GetPdbDll(void)" (?GetPdbDll##YAPAUHINSTANCE__##XZ) Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(pdblkup.obj) 1
Error LNK2019 unresolved external symbol _terminate referenced in function __except_handler4_noexcept Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4_noexcept.obj) 1
Error LNK2019 unresolved external symbol ___current_exception referenced in function __except_handler4_noexcept Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4_noexcept.obj) 1
Error LNK2019 unresolved external symbol ___current_exception_context referenced in function __except_handler4_noexcept Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4_noexcept.obj) 1
Error LNK2019 unresolved external symbol __except_handler4_common referenced in function __except_handler4 Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Filters\MSVCRTD.lib(chandler4gs.obj) 1
Error LNK1120 31 unresolved externals Filters C:\Users\alokm\tmp\tmhare.mvps.org-vcam\Bin\VCamD.ax 1
Where I am wrong? How to make this working?
The problem building the project is coming from this:
The project source code has a dependency of DirectShow BaseClasses which is no longer a part of Windows SDK
The project has too many settings diverged from defaults; with current Visual Studio it becomes a problem
I updated the github repository and changed the project settings to make the project build (Visual Studio 2019 Communitty) and run: most of the C++ project settings are reverted and DirectShow BaseClasses are used in the build configuration from github.
Check out README.md there, follow build steps (which require to pull Windows SDK Samples first, and build DirectShow stuff there), have DLLs registered (regsvr32) and finally you will have the filter generating video with random data:

error LNK2019 unresolved external symbol dbbind referenced in function

I'm trying to compile tds_fdw for Windows 64bit using Visual Studio Community 2017, but I'm getting the errors below.
The C/C++ Additional Include Directories are:
E:\Downloads\FreeTDS-1.00-x86\freetds-1.00\include
C:\Apps\postgres\pgsql-10.0\include\server\port\win32_msvc
C:\Apps\postgres\pgsql-10.0\include\server\port\win32
C:\Apps\postgres\pgsql-10.0\include
C:\Apps\postgres\pgsql-10.0\include\server
E:\Workspace\git\tds_fdw\include
%(AdditionalIncludeDirectories)
The Linker Input has Additional Dependencies:
C:\Apps\postgres\pgsql-10.0\lib\postgres.lib
What am I missing?
1>------ Rebuild All started: Project: tds_fdw, Configuration: Release x64 ------
1>deparse.c
1>options.c
1>tds_fdw.c
1>Generating Code...
1> Creating library E:\Workspace\git\tds_fdw\x64\Release\tds_fdw.lib and object E:\Workspace\git\tds_fdw\x64\Release\tds_fdw.exp
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbbind referenced in function tdsGetRowCountShowPlanAll
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbclose referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcmd referenced in function tdsExecuteQuery
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcolname referenced in function tdsGetColumnMetadata
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcoltype referenced in function tdsGetColumnMetadata
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbconvert referenced in function tdsConvertToCString
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbiscount referenced in function tdsGetRowCountExecute
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbcount referenced in function tdsGetRowCountExecute
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbdata referenced in function tdsIterateForeignScan
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbdatecrack referenced in function tdsDatetimeToDatum
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbdatlen referenced in function tdsIterateForeignScan
1>tds_fdw.obj : error LNK2019: unresolved external symbol dberrhandle referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbexit referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbinit referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dblogin referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbloginfree referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbmsghandle referenced in function estimate_path_cost_size
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbnextrow referenced in function tdsGetRowCountExecute
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbnumcols referenced in function tdsGetRowCountShowPlanAll
1>tds_fdw.obj : error LNK2019: unresolved external symbol tdsdbopen referenced in function tdsSetupConnection
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbresults referenced in function tdsExecuteQuery
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbsqlexec referenced in function tdsExecuteQuery
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbuse referenced in function tdsSetupConnection
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbwillconvert referenced in function tdsConvertToCString
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbsetlname referenced in function tdsSetupConnection
1>tds_fdw.obj : error LNK2019: unresolved external symbol dbsetlversion referenced in function tdsSetupConnection
1>E:\Workspace\git\tds_fdw\x64\Release\tds_fdw.dll : fatal error LNK1120: 26 unresolved externals
1>Done building project "tds_fdw.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Update: files from FreeTDS
freetds-1.00\bin
freetds-1.00\etc
freetds-1.00\include
freetds-1.00\lib
freetds-1.00\README.tests
freetds-1.00\sbin
freetds-1.00\var
freetds-1.00\bin\bsqldb.exe
freetds-1.00\bin\bsqlodbc.exe
freetds-1.00\bin\datacopy.exe
freetds-1.00\bin\defncopy.exe
freetds-1.00\bin\freebcp.exe
freetds-1.00\bin\osql
freetds-1.00\bin\sqsh.exe
freetds-1.00\bin\tsql.exe
freetds-1.00\etc\freetds.conf
freetds-1.00\etc\locales.conf
freetds-1.00\etc\pool.conf
freetds-1.00\include\bkpublic.h
freetds-1.00\include\cspublic.h
freetds-1.00\include\cstypes.h
freetds-1.00\include\ctpublic.h
freetds-1.00\include\odbcss.h
freetds-1.00\include\sqldb.h
freetds-1.00\include\sqlfront.h
freetds-1.00\include\sybdb.h
freetds-1.00\include\syberror.h
freetds-1.00\include\sybfront.h
freetds-1.00\include\tds_sysdep_public.h
freetds-1.00\lib\libct.a
freetds-1.00\lib\libct.la
freetds-1.00\lib\libsybdb.a
freetds-1.00\lib\libsybdb.la
freetds-1.00\lib\libtdsodbc.a
freetds-1.00\lib\libtdsodbc.la
freetds-1.00\lib\pkgconfig
freetds-1.00\lib\pkgconfig\freetds.pc
freetds-1.00\sbin\tdspool.exe
freetds-1.00\sbin\tdssrv.exe
freetds-1.00\var\log
You failed to link to the FreeTDS .lib. You'll also need to ensure the associated .dll is in your PATH or copied to the same directory as the extension you built.

curlpp error from LibCurl.obj and libcurl_a.lib

When executing the following code I receive LNK2019 errors. I have set the Runtime Library as Multi-threaded (/MT):
// LibCurl.cpp : Defines the entry point for the console application.
#include "stdafx.h"
// errors here solved via C:\Users\homeDir\Documents\Tools\curlpp-0.8.1\include
#include <curlpp/cURLpp.hpp>
#include <curlpp/Options.hpp>
#include <curlpp/Easy.hpp>
#include "curl/curl.h"
#ifdef _DEBUG
#pragma comment(lib, "libcurl_a.lib")
#else
#pragma comment(lib, "libcurl_a.lib")
#endif
int main()
{
curl_global_init(CURL_GLOBAL_DEFAULT);
CURL *curl = curl_easy_init();
if (curl) {
CURLcode res;
curl_easy_setopt(curl, CURLOPT_URL, "http://www.dynamsoft.com");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
curl_global_cleanup();
printf("Press any key to continue\n");
getchar();
curlpp::Cleanup myCleanup;
return 0;
}
Error is as follows:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol __imp__fgets LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(netrc.obj) 1
Error LNK2019 unresolved external symbol "public: __thiscall curlpp::Cleanup::Cleanup(void)" (??0Cleanup#curlpp##QAE#XZ) referenced in function _main LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\LibCurl.obj 1
Error LNK2019 unresolved external symbol "public: __thiscall curlpp::Cleanup::~Cleanup(void)" (??1Cleanup#curlpp##QAE#XZ) referenced in function _main LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\LibCurl.obj 1
Error LNK2019 unresolved external symbol __imp__fgets referenced in function _Curl_cookie_init LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2019 unresolved external symbol __imp__fopen referenced in function _Curl_cookie_init LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp__fopen LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__fopen LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp__fopen LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(netrc.obj) 1
Error LNK2019 unresolved external symbol __imp__fputs referenced in function _Curl_flush_cookies LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(telnet.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(rtsp.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(imap.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(transfer.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(parsedate.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(hostip.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp____stdio_common_vsscanf LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http_proxy.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(tftp.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(hostip.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http.obj) 1
Error LNK2001 unresolved external symbol __imp___time64 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(dotdot.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(curl_sasl.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftplistparser.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(http.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mprintf.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(rtsp.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(cookie.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__strncmp LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(connect.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(telnet.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(curl_sspi.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(strerror.obj) 1
Error LNK2001 unresolved external symbol __imp__strncpy LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(ftp.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(formdata.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(transfer.obj) 1
Error LNK2001 unresolved external symbol __imp__fread LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2019 unresolved external symbol __imp__fseek referenced in function _Curl_pin_peer_pubkey LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__fseek LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(transfer.obj) 1
Error LNK2001 unresolved external symbol __imp__fseek LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp__fseek LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(formdata.obj) 1
Error LNK2019 unresolved external symbol __imp__ftell referenced in function _Curl_pin_peer_pubkey LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2019 unresolved external symbol __imp__getenv referenced in function _curl_global_sslset LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(vtls.obj) 1
Error LNK2001 unresolved external symbol __imp__getenv LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(getenv.obj) 1
Error LNK2019 unresolved external symbol __imp__fwrite referenced in function _Curl_init_userdefined LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(url.obj) 1
Error LNK2001 unresolved external symbol __imp__fwrite LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(sendf.obj) 1
Error LNK2019 unresolved external symbol __imp__read referenced in function _curlx_read LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(warnless.obj) 1
Error LNK2001 unresolved external symbol __imp__read LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(read.obi) 1
Error LNK2019 unresolved external symbol __imp__write referenced in function _curlx_write LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(warnless.obj) 1
Error LNK2001 unresolved external symbol __imp__write LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(write.obi) 1
Error LNK2019 unresolved external symbol __imp___gmtime64 referenced in function _Curl_gmtime LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(parsedate.obj) 1
Error LNK2019 unresolved external symbol __imp__strerror referenced in function _Curl_strerror LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(strerror.obj) 1
Error LNK2019 unresolved external symbol __imp____sys_nerr referenced in function _Curl_strerror LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(strerror.obj) 1
Error LNK2019 unresolved external symbol __imp___beginthreadex referenced in function _Curl_thread_create LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(curl_threads.obj) 1
Error LNK2019 unresolved external symbol __imp__close referenced in function _file_done LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(file.obj) 1
Error LNK2001 unresolved external symbol __imp__close LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(close.obi) 1
Error LNK2019 unresolved external symbol __imp__open referenced in function _file_connect LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(file.obj) 1
Error LNK2001 unresolved external symbol __imp__open LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(open.obi) 1
Error LNK2019 unresolved external symbol __imp___fstat64 referenced in function _file_do LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(file.obj) 1
Error LNK2019 unresolved external symbol __imp___getpid referenced in function _smb_format_message LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(smb.obj) 1
Error LNK2019 unresolved external symbol __imp__access referenced in function _curl_mime_filedata LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp__access LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(access.obi) 1
Error LNK2019 unresolved external symbol __imp___stat64 referenced in function _curl_mime_filedata LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\libcurl_a.lib(mime.obj) 1
Error LNK2001 unresolved external symbol __imp___open LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(open.obi) 1
Error LNK2001 unresolved external symbol __imp___access LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\OLDNAMES.lib(access.obi) 1
Error LNK2019 unresolved external symbol __except_handler4_common referenced in function __except_handler4 LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\LibCurl\MSVCRT.lib(chandler4gs.obj) 1
Error LNK1120 29 unresolved externals LibCurl C:\Users\939508\Documents\C++ Projects\LibCurl\Debug\LibCurl.exe 1
Please refer to Visual Studio 2017 and curlpp library LNK2019 error if you would like to see my configurations for my project.