Wstrict aliasing报错

本文探讨了在编程中遇到#pragma GCC diagnostic warning -Wstrict-aliasing pop的问题及其解决方法,主要涉及C/C++的类型别名和内存对齐规则,为程序员提供了解决严格别名警告的技巧和最佳实践。

#pragma GCC diagnostic warning “-Wstrict -aliasing” pop
解决

-- CMAKE_GENERATOR: Unix Makefiles -- SIZEOF_VOIDP 8 -- MySQL 5.7.26 -- Packaging as: mysql-5.7.26-Linux-x86_64 -- Local boost dir /root/boost_1_59_0 -- Found /root/boost_1_59_0/boost/version.hpp -- BOOST_VERSION_NUMBER is #define BOOST_VERSION 105900 -- BOOST_INCLUDE_DIR /root/boost_1_59_0 -- NUMA library missing or required version not available -- Found Git: /usr/bin/git -- LIBEVENT_INCLUDE_DIRS /root/mysql-5.7.26/extra/libevent/include;/root/mysql-5.7.26/extra/libevent/include -- LIBEVENT_LIBRARIES event -- Cannot find system sasl libraries. -- WITH_PROTOBUF=bundled -- protobuf version is 2.6 -- You need to set WITH_CURL. This variable needs to point to curl library. -- Creating LDAP authentication SASL client library. -- Currently LDAP SASL client authentication plug-in is build with only system installed cyrus SASL library. -- Required SASL library is missing. Skipping the LDAP SASL client authentication plugin. -- Library mysqlclient depends on OSLIBS -lpthread;m;rt;dl -- MERGE_CONVENIENCE_LIBRARIES TARGET mysqlclient -- MERGE_CONVENIENCE_LIBRARIES LIBS clientlib;dbug;strings;vio;mysys;mysys_ssl;zlib;yassl;taocrypt;dl -- MERGE_CONVENIENCE_LIBRARIES MYLIBS clientlib;dbug;strings;vio;mysys;mysys_ssl;zlib;yassl;taocrypt -- Using cmake version 3.12.1 -- Disabling -Wunused-but-set-variable warning for building NDB -- Disabling -Wstrict-aliasing warning for building NDB -- Not building NDB CMake Error at rapid/plugin/group_replication/rpcgen.cmake:93 (MESSAGE): Could not find rpcgen Call Stack (most recent call first): rapid/plugin/group_replication/CMakeLists.txt:29 (INCLUDE) -- Configuring incomplete, errors occurred! See also "/root/mysql-5.7.26/CMakeFiles/CMakeOutput.log". See also "/root/mysql-5.7.26/CMakeFiles/CMakeError.log". [root@localhost mysql-5.7.26]# 预编译报错
最新发布
10-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值