- 博客(13)
- 收藏
- 关注
原创 在目录中查找指定通配字符串的文件
windows用_findfirst、_findnext,linux用readdir和fnmatch函数或者findfirst,findnext函数
2022-04-19 10:30:14
93
原创 goland去掉gopath,用go module编译配置go项目
go module相较于gopath优势优势1: gopath限制了工程的编译路径,或者说只要在gopath之外的工程需要编译,就得在gopath里增加这个工程的路径,但是go module改变了这一点,能在任何目录编译自己的项目优势2: go module增加了依赖的包的管理机制。1. 点击左上角的file->setting->Go-> GOPATH把之前配置的GOPATH删掉。2.打开命令行,输入go mod init pakagename...
2021-08-08 18:15:28
2810
1
原创 vs 编译动态库和使用动态库的几种方式
生成DLL新建空项目,选择动态链接库(DLL),然后下一步填写项目名称,然后点击创建。添加.def文件,导出函数MyAdd在工程配置->链接器->输入->模块定义文件里填写 def文件名(否则dll不会有导出函数的信息)。调用动态库的几种方式直接用LoadLibrary函数加载。#include #include <windows.h>#includeusing namespace std;typedef int (*lpAddFunc)(int
2021-06-06 21:54:35
1637
原创 libcurl+opensll交叉编译支持访问https
1、交叉编译openssl(这里setarch i386很关键,指定了cpu的架构,不然访问https的时候会出错)1.1 setarch i386 ./config --prefix=/home/linuxos/public/ysw/yf_openssl no-asm --shared CC=/opt/arm-linux-gnueabihf/gcc-4.9/bin/arm-linux-gnueabihf-gcc1.2 sudo make1.3 sudo make install2、交叉编译lib
2020-12-09 20:04:14
218
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人