上一页 1 ··· 8 9 10 11 12
摘要: # 1、安装 到[MinGW](https://github.com/niXman/mingw-builds-binaries/releases "MinGW")下载最新的安装包 ![image](https://img2023.cnblogs.com/blog/2414603/202308/241 阅读全文
posted @ 2023-08-07 22:30 NotReferenced 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1、依赖 安装zlib库 ## 运行下述命令安装zlib $ yum install -y zlib $ cp /usr/local/lib64/libz.so /usr/lib64 安装meson $ yum install -y meson 2、安装 从https://download.gnom 阅读全文
posted @ 2023-08-01 19:56 NotReferenced 阅读(229) 评论(0) 推荐(0) 编辑
摘要: # 1、可变参数函数定义 必需显式定义至少一个参数,不能直接定义`...`。 ```c LOCAL void reset_param(guint num, ...) {} ``` 一般来说,第一个参数传入可变参数的个数。 # 2、可变参数的使用 需要用到`stdarg.h`中的1个结构体和3个宏定义 阅读全文
posted @ 2023-07-31 23:09 NotReferenced 阅读(16) 评论(0) 推荐(0) 编辑
摘要: > 多个dir之间需要用`:`分隔 使用`-Wl,-rpath,path`添加运行时库路径,如果不加这个属性,那么可能会无法打开库文件: ```shell gcc -o main main.c -Wl,-rpath,/usr/test -L/usr/test -ltest ``` 阅读全文
posted @ 2023-07-30 18:33 NotReferenced 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 使用-L选项可以添加额外的链接库搜索路径,如下: ```shell gcc -o main main.c -L/usr/test -ltest ``` 阅读全文
posted @ 2023-07-30 18:24 NotReferenced 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 使用宏变量`__VA_ARGS__`可以将省略号直接传递给另一个函数。 如下: ```c #define println(fmt, ...) \ printf(fmt, __VA_ARGS__);\ printf("\n"); ``` 阅读全文
posted @ 2023-07-30 18:20 NotReferenced 阅读(113) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12