Silentdoer

导航

2023年8月19日 #

dart集成shell脚本调用功能

摘要: pubspec.yaml里添加依赖:shell: any import 'dart:io'; import 'package:shell/shell.dart'; void main(List<String> arguments) async { var shell = Shell(); var p 阅读全文

posted @ 2023-08-19 12:38 Silentdoer 阅读(86) 评论(0) 推荐(0) 编辑

linux下gcc/g++创建一个共享库项目以及创建一个可执行项目动态链接该共享库

摘要: 1.先确保有g++命令 2.创建一个c++项目目录,并cd到该目录 3.创建共享库头文件:dynamic_so.h #ifndef __TESTb__ #define __TESTb__ int testFun(int a, int b); #endif 4.创建对应共享库的实现文件:dynamic 阅读全文

posted @ 2023-08-19 10:00 Silentdoer 阅读(186) 评论(0) 推荐(0) 编辑