Discussion:
[asio-users] Asio 1.11.0 on Windows Phone 8.1
Jan Deinhard
2015-04-02 07:11:38 UTC
Permalink
Hi,

I’m trying to compile a project using Asio for Windows Phone 8.1. I tried to compile with the version that comes with Boost 1.57 and with the stand alone version 1.11.0. With both versions the compiler complains about missing file mswsock.h (C1083 no such file or directory). Obviously this file is not available for Windows Phone projects.

In the comments to the following blog article someone mentions a patch for Asio “available on the author’s site”. I’m not sure if it is related to my problem though.

http://blogs.msdn.com/b/vcblog/archive/2014/07/18/using-boost-libraries-in-windows-store-and-phone-applications.aspx

Is there anything I can do to make Asio compile for Windows Phone? Am I missing a compiler switch or a preprocessor definition? Does the patch address the problem?

Best
Jan
Yuri Timenkov
2015-04-02 19:46:04 UTC
Permalink
Hi,

I didn't tried this but probably you need to include another header, Winsock2.h
(msdn says socket API supported from winphone 8,
https://msdn.microsoft.com/en-us/library/windows/apps/ms740141.aspx)
From: ***@sennheiser-connect.com
To: asio-***@lists.sourceforge.net
Date: Thu, 2 Apr 2015 07:11:38 +0000
Subject: [asio-users] Asio 1.11.0 on Windows Phone 8.1






Hi,



I’m trying to compile a project using Asio for Windows Phone 8.1. I tried to compile with the version that comes with Boost 1.57 and with the stand alone version 1.11.0. With both versions the compiler complains about missing file mswsock.h (C1083
no such file or directory). Obviously this file is not available for Windows Phone projects.



In the comments to the following blog article someone mentions a patch for Asio “available on the author’s site”. I’m not sure if it is related to my problem though.



http://blogs.msdn.com/b/vcblog/archive/2014/07/18/using-boost-libraries-in-windows-store-and-phone-applications.aspx



Is there anything I can do to make Asio compile for Windows Phone? Am I missing a compiler switch or a preprocessor definition? Does the patch address the problem?



Best
Jan



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
asio-users mailing list
asio-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/asio-users
_______________________________________________
Using Asio? List your project at
http://think-async.com/Asio/WhoIsUsingAsio

Loading...