Visual Studio 2015编译wxWidgets
摘要:宫指导说,换帅如换刀 程序员的编译器一换,基本套路必须都重练几次 使用wxWidgets并不难,但不能使用现有的库和工程配置文件,细节就必须理清楚 获取wxWidgets 官方的下载页面,下7z或zip文件均可 文件“wxWidgets根目录/docs/msw/install.txt”是编译说明文档
阅读全文
posted @
2018-06-20 23:08
袁晓平
阅读(1059)
推荐(0)
Writing custom protocol for nanomsg
摘要:http://vitiy.info/writing-custom-protocol-for-nanomsg/ nanomsg is next version of ZeroMQ lib, providing smart cross-platform sockets for implementatio
阅读全文
posted @
2018-06-10 15:04
袁晓平
阅读(434)
推荐(0)
vc写的dll被mingw的g++编译引用
摘要:dll.cpp,用vc2017编译 #include <iostream>#include <windows.h> extern "C" __declspec(dllexport) void Go() { std::cout << "go" << std::endl;} BOOL APIENTRY
阅读全文
posted @
2018-05-28 17:38
袁晓平
阅读(336)
推荐(0)
libuv示例代码
摘要:https://github.com/nikhilm/uvbook/tree/master/code
阅读全文
posted @
2018-05-22 14:41
袁晓平
阅读(350)
推荐(0)
整型数字转utf8
摘要:static std::string codePointToUTF8(unsigned int cp){ std::string result; // based on description from http://en.wikipedia.org/wiki/UTF-8 if (cp <= 0x7
阅读全文
posted @
2018-05-16 10:19
袁晓平
阅读(282)
推荐(0)
cmake构建时指定编译器架构(x86 or x64)
摘要:vs2015 x64编译器为例,cmake命令如下: vs2015 x64编译器为例,cmake命令如下: Xml代码 cmake -G "Visual Studio 14 Win64" path\to\source\dir 去掉Win64,就是32bit: Xml代码 cmake -G "Visu
阅读全文
posted @
2018-05-15 23:50
袁晓平
阅读(1368)
推荐(0)
tcp echo server libuv
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>#include <uv.h>#define DEFAULT_PORT 7000#define DEFAULT_BACKLOG 128uv_loop_t *loop;struct sock
阅读全文
posted @
2018-05-13 21:12
袁晓平
阅读(236)
推荐(0)
VS2015编译boost1.62
摘要:VS2015编译boost1.62 Boost库是一个可移植、提供源代码的C++库,作为标准库的后备,是C++标准化进程的开发引擎之一。 Boost库由C++标准委员会库工作组成员发起,其中有些内容有望成为下一代C++标准库内容。在C++社区中影响甚大,是不折不扣的“准”标准库。Boost由于其对跨
阅读全文
posted @
2018-04-28 22:34
袁晓平
阅读(210)
推荐(0)
c实现的list
摘要:// clist.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <stdio.h>#include <malloc.h> //动态分配内存#include <stdlib.h> //exit 函数#include <stdbool.h> //布尔
阅读全文
posted @
2018-03-20 19:47
袁晓平
阅读(1288)
推荐(0)
[PHP] Compile an extension on Windows
摘要:https://wiki.php.net/internals/windows/stepbystepbuildhttp://blog.benoitblanchon.fr/build-php-extension-on-windows/https://wiki.php.net/internals/wind
阅读全文
posted @
2017-12-20 10:57
袁晓平
阅读(239)
推荐(0)
Calling a Java Method from Native Code
摘要:http://journals.ecs.soton.ac.uk/java/tutorial/native1.1/implementing/method.html Calling Java Methods This section illustrates how you can call Java m
阅读全文
posted @
2017-06-05 22:17
袁晓平
阅读(369)
推荐(0)
javah 错误: 无法访问android.app.Activity问题解决
摘要:cd /Users/musictom/Documents/source/ky/app/build/intermediates/classes/debug javah -jni -classpath /Users/musictom/Library/Android/sdk/platforms/andro
阅读全文
posted @
2017-06-03 17:47
袁晓平
阅读(441)
推荐(0)
android cannot locate symbol 'sigemptyset'问题解决
摘要:设备是android 4.1的平板电脑,支持armeabi-v7a和mips,为了能用上poco c++ lib,用cmake编译了poco mips架构的lib,但在android studio里引用运行时就报 cannot locate symbol 'sigemptyset' google了下
阅读全文
posted @
2017-06-03 11:48
袁晓平
阅读(1258)
推荐(0)
Building Boost for Android with error “cannot find -lrt”
摘要:编辑tools/build/src/tools/gcc.jam rule setup-threading ( targets * : sources * : properties * ){ local threading = [ feature.get-values threading : $(pr
阅读全文
posted @
2017-05-07 11:43
袁晓平
阅读(981)
推荐(0)
how-to-build-c-static-libraries-boost
摘要:http://tungchingkai.blogspot.jp/2016/11/how-to-build-c-static-libraries-boost.html How to build C++ static libraries (boost and QuantLib) for Android
阅读全文
posted @
2017-04-27 13:43
袁晓平
阅读(923)
推荐(0)
What you should know about .so files
摘要:In its early days, the Android OS was pretty much supporting only one CPU architecture: ARMv5.Do you know how many it does support now? … 7! Seven dis
阅读全文
posted @
2017-04-16 22:35
袁晓平
阅读(294)
推荐(0)
std::u32string conversion to/from std::string and std::u16string
摘要:I need to convert between UTF-8, UTF-16 and UTF-32 for different API's/modules and since I know have the option to use C++11 am looking at the new str
阅读全文
posted @
2017-04-16 21:53
袁晓平
阅读(922)
推荐(0)
c++ istream转换为std::string
摘要:(could be a one-liner if not for MVP) post-2011 edit, this approach is now spelled I'm late to the party, but here is a fairly efficient solution: I d
阅读全文
posted @
2017-04-16 21:38
袁晓平
阅读(7414)
推荐(0)
android开发-c++代码调用so库
摘要:Android项目的CMakeLists.txt代码如下,so文件放在项目的$Project/app/src/main/jniLibs/$arch下,$arch替换为arm64-v8a armv7a等 cmake_minimum_required(VERSION 3.4.1)set(ARCH arc
阅读全文
posted @
2017-04-16 20:42
袁晓平
阅读(4199)
推荐(0)
ios-toolchain-based-on-clang-for-linux
摘要:https://github.com/tpoechtrager/cctools-port.git https://www.embtoolkit.org
阅读全文
posted @
2017-03-23 10:57
袁晓平
阅读(437)
推荐(0)