embeddedmz / ftpclient-cpp

C++ client for making FTP requests
MIT License
204 stars 65 forks source link

cannot find Utf8ToUtf16 #29

Closed pengzhen80 closed 2 years ago

pengzhen80 commented 2 years ago

compile with visual studio 2019, errors are "cannot identify Utf8ToUtf16"

embeddedmz commented 2 years ago

Hi @pengzhen80

That's strange ! How did you generate the VS2019 solution ? Did you follow the instructions in the README file ?

Apparently you have manually defined the "WINDOWS" preprocessor macro in the FTPClient.cpp file where as you should defined in the header file instead FTPClient.h or it's better for you, if you don't want to use CMake, to define this macro in project settings -> C/C++ -> Preprocessor -> and add WINDOWS macro in the appropriate field (my VS2019 is in french).

You will also have to manage libcurl include directories and add the library in linker inputs if you don't want to use CMake.

Regards.

Dw9 commented 2 years ago

You need to install curl,and use cmake to generate sln。 it can compile on my computer。 image

pengzhen80 commented 2 years ago

Thank you , Fixed by add WINDOWN macro; @embeddedmz