logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

linux so 动态库中全局变量 被覆盖问题

问题描述回归正题,前段时间项目开发中,实现了一个动态库,封装了一些方法。然后基于这个动态库,实现了一个应用程序。应用程序中含有全局变量A,动态库中也含有全局变量A,当我调用动态库中函数后,发现应用程序的A发生了变化!!!O,My God!对于我这种还没在Linux下做过开发的人来说,一头雾水。。。。。。 于是我尝试着,将A中的变量名称改为B,这样问题也就没有了~~~原因

epoll 高并发 每个线程一个epoll

知乎 讨论: easyserverdevhttps://www.zhihu.com/question/271561199/answer/362106439对应的开源项目https://github.com/baloonwj/flamingo

vim 插件 安装脚本

很明显脚本不是我写的地址:https://github.com/ma6174/vim

boost async_udp_echo_server

boost官方例子//// async_udp_echo_server.cpp// ~~~~~~~~~~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Ve

nlohmann json

JSON for Modern C++https://github.com/nlohmann/json解析复杂结构,不好意忘了贴具体的json数据了,大家看解析过程应该可以猜到。#include <nlohmann/json.hpp>// for convenienceusing json = nlohmann::json;std::string media_config_string

python 解析json

解析科大讯飞 语音识别 返回的语义结果返回的json数据{"code": "0","data": [{"sub": "iat","text": {"sn": 1,"ls": false,"bg": 0,"ed&

vs2015编译jsoncpp

先下载源码https://github.com/open-source-parsers/jsoncpp解压后 到makefiles\vs71,运行jsoncpp.sln,直接编译release版本注意下面设置,如果不设置的话 会出现json_writer.asm': 错误然后在lib_json 工程上点击右键,选在 Property 项,然后再 lib_json Prop

到底了