golang 通过 cgo 调用 C/C++ 静态库(一次通过)
hello.h
#ifndef HELLO_H_
#define HELLO_H_
#ifdef __cplusplus
extern "C" {
#endif
extern int hello(char *name, int age);
#ifdef __cplusplus
}
#endif
#endif // HELLO_H_
hello.c
#include <std...
原创
2020-03-11 16:18:18 ·
1122 阅读 ·
0 评论