Using the C + + libsockets library on Raspberry Pi

Source: Internet
Author: User

RPI the compiler installed by default is gcc-4.6.2

Now the latest C + + Libsockets library needs to use compilers that support the C++-11 feature, which requires 4.8.2. To do this, you need to upgrade the compiler before you can support compilation.

You also need cmake to generate the makefile file

The steps are as follows:

1. Download the source code:

2, installation CMake

Install

3, upgrade the compiler to 4.8.2

Tutorial Links: http://www.cnblogs.com/sn-dnv-aps/p/4419484.html

4. Compiling Libsocket

$CD/opt/libsocket     #此处修改为你的下载目录 $cmake CMakeLists.txt   #生成makefile $make  $  makeinstall             #安装libsocket. So, libsocket++.so and corresponding header files

Using the C + + libsockets library on Raspberry Pi

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.