Hi,
I have already ported the c resource sdk to work with Visual Studio 2015.
Currently, I am not using the scons, but instead have created visual studio
projects for the same. I can run the sample ocserver and occlient successfully.
As for the size of the data type to be used in coap_hdr_t, its only when I made
the following changes, it workedtypedef struct
{
??? uint16_t token_length : 4; /* length of Token */
??? uint16_t type : 2; /* type flag */
??? uint16_t version : 2; /* protocol version */
??? uint16_t code : 8; /* request method (value 1--10) or response code (value
40-255) */
??? unsigned short id; /* transaction id (network byte order!) */
??? unsigned char token[]; /* the actual token, if any */
} coap_hdr_t;
Thanks,Javid
On Thursday, September 17, 2015 2:05 PM, Thiago Macieira <thiago.macieira
at intel.com> wrote:
On Thursday 17 September 2015 13:52:09 Jon A. Cruz wrote:
> On 09/17/2015 09:50 AM, Thiago Macieira wrote:
> > I also ran the exercise of trying to compile on Windows and noticed
> > there's a? lot of bad assumptions in the code. In particular, libcoap's
> > hardcoded config.h does not apply on Windows, causing a lot of build
> > issues. Once the config.h is fixed, libcoap builds fine.
> >
> >
> >
> > Let me clean up the patches and submit them.
>
> We probably want to explicitly call out which versions of MSVC are being
> targeted/supported.
None. I have no clue how to tell scons to use the Microsoft compiler. It
always runs "gcc", no matter what environment I'm in.
And we're really far away from Visual Studio support.
I managed to get something going with Cygwin, but that's not a real target.
It's a stepping stone, one to be removed once we're done with it.
--
Thiago Macieira - thiago.macieira (AT) intel.com
? Software Architect - Intel Open Source Technology Center
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150917/f5fe8a49/attachment.html>