CodeBlocks使用静态链接库
来源:互联网 发布:树莓派gpio编程 编辑:程序博客网 时间:2024/06/04 19:23
想写一个curl下载工具,批量保存页面中的图片或其他资料的脚本工具。
但在公司写好了之后,在家里不能运行。于是就上网搜索了一大圈,找到设置CodeBlocks使用静态链接库的方法。
- Go to Project build options->Compiler settings->#defines: type in
CURL_STATICLIB
. When this is defined the libcurl.h header will have its function signatures preprocessed to fit static linkage. Otherwise dynamic linkage is assumed and the mangled names then become_imp__*
. The unresolved errors from your screenshot indicate it's attempting a dynamic link rather than the desired static link.
- Under Project build options->Linker settings->Link libraries make sure it contains the following: curl, rtmp, idn, ssl, ssh2, crypto, z, ws2_32, wldap32, winmm, gdi32. Note that order is important. Due to a design deficiency of the gnu linker, the most dependant libraries need to be listed first followed by least dependant. Other linkers like msvc link and borland's ilinker do not exhibit such issues -- the libraries can be listed in any order.
- Under Project build options->Linker settings->Other linker options add in '-static'. This will make sure that the static version of 'idn' is used. If this switch is omitted then your compiled program could depend on 'libidn-11.dll' to run which probably isn't what you want.
- CodeBlocks使用静态链接库
- CodeBlocks创建静态链接库和使用
- CodeBlocks创建静态链接库和使用
- 针对codeblocks:如何使用winmm.lib等等win32编程需要的静态链接库???
- codeblocks创建静态库并使用
- codeblocks中创建和调用静态链接库(lib)
- CodeBlocks静态链接与动态链接设置
- CodeBlocks静态链接与动态链接设置
- C/C++ 跨平台交叉编译、静态库/动态库编译、MinGW、Cygwin、CodeBlocks使用原理及链接参数选项
- CodeBlocks+MinGW+Wxwidgets程序的静态链接
- codeblocks创建和使用静态库(C语言)
- CodeBlocks与C-Free使用VC的静态库
- 静态链接库的使用
- 静态链接库的使用
- 使用静态库链接程序
- codeblocks 下 添加动态链接库
- codeblocks加入动态链接库的步骤。
- gcc使用---动态库链接静态库
- Hadoop集群环境部署_lzo
- device number(dev_t)
- ulogd2.0的安装
- 折半插入排序
- LINUX网络编程
- CodeBlocks使用静态链接库
- C#异步
- ACM基本算法分类、推荐学习资料和配套pku习题
- Binder机制之Server端—MediaPlayerService::instantiate()
- android 内存溢出问题分析
- Hadoop集群环境部署
- 润乾报表软件
- SSH中转义特殊字符串以及非Web项目中的特殊字符转换
- JAVA中this用法小结