Project

General

Profile

Setup Problems VS2017

Added by Johann Bernhardt over 5 years ago

Hi,

I would like to play with WT a bit but failed at setting up my project. First i tried the precompiled binaries and later i tried compiling them myself. Compiling WT went without problems and all examples are running, but i cannot get an own project to build.

I am using Visual Studio 2017 (v141) targeting x64 with self compiled binaries

I am using the code from hello world

Boost: 1.68

Include Dirs: C:\Boost\boost_1_68_0\boost_1_68_0;C:\Program Files\WT\include

Preprocessor Def. : WIN32

Linker Dir: C:\Boost\boost_1_68_0\boost_1_68_0\lib64-msvc-14.1;C:\Program Files\WT\lib

Additional Dependencies Release: wthttp.lib;wt.lib; Debug: wthttpd.lib;wtd.lib

My guess is i am missing include directorys, but which ones?

Thanks for any help,

Sinthoras

PS: I am sorry for the long list; I did not find any option to collapse it

1>--------- Rebuild All started: Project: SchneebaerTEST3, Configuration: Debug x64 ---------

1>main.cpp

1>c:\program files\wt\include\wt\wstringstream.h(110): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data

1>libboost_filesystem-vc141-mt-gd-x64-1_68.lib(codecvt_error_category.obj) : error LNK2001: unresolved external symbol _imp_invalid_parameter

1>libboost_thread-vc141-mt-gd-x64-1_68.lib(thread.obj) : error LNK2001: unresolved external symbol _imp_invalid_parameter

1>libboost_filesystem-vc141-mt-gd-x64-1_68.lib(path_traits.obj) : error LNK2001: unresolved external symbol _imp_invalid_parameter

1>libboost_filesystem-vc141-mt-gd-x64-1_68.lib(path.obj) : error LNK2001: unresolved external symbol _imp_invalid_parameter

1>libboost_filesystem-vc141-mt-gd-x64-1_68.lib(operations.obj) : error LNK2001: unresolved external symbol _imp_invalid_parameter

1>libboost_program_options-vc141-mt-gd-x64-1_68.lib(variables_map.obj) : error LNK2001: unresolved external symbol _imp_invalid_parameter

...

1>libboost_program_options-vc141-mt-gd-x64-1_68.lib(parsers.obj) : error LNK2019: unresolved external symbol __imp_fgetwc referenced in function "bool __cdecl std::_Fgetc(wchar_t &,struct _iobuf *)" (??$_Fgetc\_W@std@YA_NAEA_WPEAU_iobufZ)
1>libboost_program_options-vc141-mt-gd-x64-1_68.lib(parsers.obj) : error LNK2019: unresolved external symbol __imp_fputwc referenced in function "bool __cdecl std::_Fputc<wchar_t>(wchar_t,struct _iobuf *)" (??$_Fputc`_W`std@`YA_N_WPEAU_iobuf
Z)
1>libboost_program_options-vc141-mt-gd-x64-1_68.lib(parsers.obj) : error LNK2019: unresolved external symbol __imp_ungetwc referenced in function "bool __cdecl std::_Ungetc(wchar_t const &,struct _iobuf *)" (??$_Ungetc_Wstd@YA_NAEB_WPEAU_iobuf@`Z)

1>D:\Sinthoras\Documents\Project Schneebaer\SchneebaerSolution\x64\Debug\SchneebaerTEST3.exe : fatal error LNK1120: 135 unresolved externals

1>Done building project "SchneebaerTEST3.vcxproj" --- FAILED.

Rebuild All: 0 succeeded, 1 failed, 0 skipped