Skip to content

Compile the aws-iot-device-sdk-cpp with Visual Studio Win64 #72

@chamber-wang

Description

@chamber-wang

Does anyone in this forum use visual studio 2017 for build and development?
Basically, I use following command to generate makefile for VS2017.
cmake -G "Visual Studio 15 2017 Win64" -Dgtest_force_shared_crt=TRUE ../.

However, after I resolve some minor compiler issues, I still suffer 44 warning messages and would like to consult with you before moving forward. For sure, I am willing to commit the minor patch for build under visual studio 2017 if necessary, please advise.

1.) SIGPIPE not support under Windows platform
#line 156 of \network\OpenSSL\OpenSSLConnection.cpp
Resolve this error by compiler "Preprocessor Statements #ifdef"

2.) unicode format encoding scheme.
\include\gtest\internal\gtest-internal.h
warning C4819:The file contains a character that cannot be represented in the current code page (950).
Resolve this by save as unicode format.

3.) Type conversion between 'unsigned int' to 'uint16_t'.
3.a) stdint.h in Visual Studio platform define uint_16_t as "unsigned int"
3.b) SOCKET need type conversion to UINT_PTR instead of int.

Chamber Wang

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions