How to fix Code Blocks Unresolved External? - c++

Recently I installed CodeBlocks and Borland C++ as the compiler to just make a C program. But when I started to build it gives an error.
bcc32.exe -q -IE:\Borland\Include -o"C:\Users\thamidu\Documents\Thamidu's Documens\Self Learning\C++\helloc.obj" -c "C:\Users\thamidu\Documents\Thamidu's Documens\Self Learning\C++\helloc.c"
C:\Users\thamidu\Documents\Thamidu's Documens\Self Learning\C++\helloc.c:
ilink32.exe -q -ap -LE:\Borland\Lib -LE:\Borland\Lib\PSDK c0x32 "C:\Users\thamidu\Documents\Thamidu's Documens\Self Learning\C++\helloc.obj","C:\Users\thamidu\Documents\Thamidu's Documens\Self Learning\C++\helloc.exe",,,,
Error: Unresolved external '___CRTL_VCL_Init' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_MEM_UseBorMM' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_VCLLIB_Linkage' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__ExceptInit' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external 'GetModuleHandleA' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__startup' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__GetExceptDLLinfoInternal' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external 'HeapAlloc' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_SetValue' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_InitThread' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Alloc' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_GetValue' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external 'GetProcessHeap' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external 'HeapFree' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_ExitThread' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '___CRTL_TLS_Free' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '_printf' referenced from C:\USERS\THAMIDU\DOCUMENTS\THAMIDU'S DOCUMENS\SELF LEARNING\C++\HELLOC.OBJ
Error: Unresolved external '__matherr' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__matherrl' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__fmode' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__argv_expand_ptr' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__wargv_expand_ptr' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__handle_setargv' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__handle_exitargv' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wsetargv' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__handle_wexitargv' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__fileinfo' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__setargv__' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__setenvp__' referenced from E:\BORLAND\LIB\C0X32.OBJ
Error: Unresolved external '__turboFloat' referenced from E:\BORLAND\LIB\C0X32.OBJ
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
Please how can i get rid of this?? thanks

Those missing symbols are from the Borland-C++ Compiler libraries.
Since you're using Code::Blocks add these to the Link Libraries pane on your project's build options (Menu Bar->Project Options->Linker Settings):
cw32.lib - Single Threaded
cw32i.lib - Single Threaded (Dynamic)
cw32mt.lib - Multi Threaded
cw32mti.lib - Multi Threaded (Dynamic)

Related

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.

Libcurl windows build VS2015 OpenSSL HTTP2

I am currently trying to build Libcurl 7.54.0 with OpenSSL and HTTP2 on windows 10 using Visual Studio 2015 and I am getting these errors in the build log at the end of compilation:
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_new referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_del referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_send_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_frame_recv_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_invalid_frame_recv_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_data_chunk_recv_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_before_frame_send_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_frame_send_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_frame_not_send_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_stream_close_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_begin_headers_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_on_header_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_callbacks_set_error_callback referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_client_new referenced in function _Curl_http2_init
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_del referenced in function _http2_disconnect
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_send referenced in function _h2_session_send
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_mem_recv referenced in function _Curl_http2_switched
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_resume_data referenced in function _Curl_http2_done_sending
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_want_read referenced in function _should_close_session
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_want_write referenced in function _http2_perform_getsock
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_get_stream_user_data referenced in function _before_frame_send
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_set_stream_user_data referenced in function _Curl_http2_done
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_get_remote_settings referenced in function _on_frame_recv
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_upgrade referenced in function _Curl_http2_switched
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_pack_settings_payload referenced in function _Curl_http2_request_upgrade
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_strerror referenced in function _Curl_http2_switched
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_http2_strerror referenced in function _Curl_http2_strerror
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_priority_spec_init referenced in function _h2_pri_spec
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_submit_request referenced in function _http2_send
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_submit_priority referenced in function _h2_session_send
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_submit_rst_stream referenced in function _Curl_http2_done
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_submit_settings referenced in function _Curl_http2_switched
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_session_set_local_window_size referenced in function _Curl_http2_switched
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_version referenced in function _Curl_http2_ver
1>libcurl.lib(http2.obj) : error LNK2019: unresolved external symbol __imp__nghttp2_is_fatal referenced in function _Curl_http2_switched
1>..\..\..\..\build\Win32\VC14\LIB Release - DLL OpenSSL\curl.exe : fatal error LNK1120: 35 unresolved externals
According to OpenSSL & nghttp2 path on my computer, I have added the following to curl & libcurl project:
I have added the following folders to my additionnal library directories (curl project->properties->configuration properties->linker->general->additionnal library directories) :
C:\OpenSSL-Win32\lib
C:\nghttp2-1.22.0\lib
And added for both curl and libcurl project additionnal include directories (both projects->properties->configuration properties->c/c++->general->additionnal include directories) :
C:\OpenSSL-Win32\include
C:\nghttp2-1.22.0\lib\includes
I also added the definition of USE_NGHTTP2 to both project preprocessor definitions (both projects->properties->configuration properties->C/C++->Preprocessor->Preprocessor Definitions) in order to compile with nghttp2.
Finally, I am building using configuration "LIB Release - DLL OpenSSL" with target platform Win32.
Edit: the issue seems to be related to nghttp2 as I successfully build without the NGHTTP2 preprocessor definition.
I am surely missing something but I can't see what at the moment.
Thank you for your assistance
Lucas

Linking libusb to my project

I am having problem figure out how to use libusb, I put "libusb-1.0.18-rc1\libusb"
in include directories (using Visua Studio), but it doesn't work.
Can anyone enlighten me. Thanks a lot!
error message:
1>test.obj : error LNK2019: unresolved external symbol _libusb_exit#4 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_close#4 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_release_interface#8 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_bulk_transfer#24 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_claim_interface#8 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_detach_kernel_driver#8 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_kernel_driver_active#8 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_free_device_list#8 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_open_device_with_vid_pid#12 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_get_device_list#8 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_set_debug#8 referenced in function _main
1>test.obj : error LNK2019: unresolved external symbol _libusb_init#4 referenced in function _main
If you havne't done so already you will need to build the libraries you will be linking to, they are located in \libusb-1.0.18-rc1\msvc. There are multiple projects there depending on your Visual Studio version and whether you want a DLL or a static LIB file.
In either case you will need to right click on your project, then under Configuration Properties -> Linker -> Input -> Additional Dependencies add a reference to the LIB file you created. If you are linking to the static LIB file you're done, it will build the code in to your executable. If you're linking to the LIB file for the DLL make sure the DLL is available in your execution path. In either case this should resolve your unresolved externals.
I think you must take the 32-Bit Version of the libusb-Library/DLL and ensure 32 Bit Compile at Project Properies. That solved my Problem with LNK2019.