03 2015 档案

golang的cgo支持调用C++的方法
摘要:1)swift,貌似官网的推荐2)extern "C"我使用后者,用起来比较爽,上代码c.h1 #pragma once2 3 #ifdef __cplusplus4 extern "C" {5 #endif6 void test();7 #ifdef __cplusplus 8 }9 #en... 阅读全文
posted @ 2015-03-11 10:09 毕海 阅读(7527) 评论(0) 推荐(1)