feihongmeilian / uv Goto Github PK
View Code? Open in Web Editor NEWSimple encapsulation for libuv, using C++11
License: MIT License
Simple encapsulation for libuv, using C++11
License: MIT License
Hi, I had met some errors when I compile and install the source code.
os:centos 6.10(64bit)
gcc version:8.1.0
cmake version:3.12.0
error info:
[dev@OG5174-FM-15-201 build]$ cmake -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ ..
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/bin/g++
-- Check for working CXX compiler: /usr/local/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dev/test/github/uv/build
[dev@OG5174-FM-15-201 build]$ cd ..
[dev@OG5174-FM-15-201 uv]$ ls
build CMakeLists.txt include LICENSE README.md samples
[dev@OG5174-FM-15-201 uv]$ cd build/
[dev@OG5174-FM-15-201 build]$ ls
CMakeCache.txt CMakeFiles cmake_install.cmake Makefile samples
[dev@OG5174-FM-15-201 build]$ make
Scanning dependencies of target daytimeclient
[ 16%] Building CXX object samples/CMakeFiles/daytimeclient.dir/daytimeclient.cpp.o
In file included from /usr/local/include/uv++/FileStreamHandle.hpp:8,
from /usr/local/include/uv++/Pipe.hpp:17,
from /usr/local/include/uv++/uv.hpp:18,
from /usr/local/include/uv:4,
from /home/dev/test/github/uv/samples/daytimeclient.cpp:3:
/usr/local/include/uv++/Stream.hpp: In member function ‘void uv::Stream<T>::write(const char*, ssize_t, std::error_code&)’:
/usr/local/include/uv++/Stream.hpp:171:3: error: there are no arguments to ‘memcpy_s’ that depend on a template parameter, so a declaration of ‘memcpy_s’ must be available [-fpermissive]
memcpy_s(sendbuf, len, p, len);
^~~~~~~~
/usr/local/include/uv++/Stream.hpp:171:3: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [samples/CMakeFiles/daytimeclient.dir/daytimeclient.cpp.o] Error 1
make[1]: *** [samples/CMakeFiles/daytimeclient.dir/all] Error 2
make: *** [all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.