Compile libjpeg.dll with vc.net
来源:互联网 发布:php windows相对路径 编辑:程序博客网 时间:2024/05/06 02:23
从sourceforge上下载下来的libjpeg源代码中有一个makefile.vc的文件,可以通过nmake /f makefile.vc [nodebug=1]
来编译libjpeg,但是只能编译静态库,如果需要编译dll以便在emacs等程序中使用的话,需要修改makefile.vc和jmorecfg.h文件。
在makefile.vc文件中添加编译dll规则:
以下内容为程序代码:
libjpeg.lib: $(LIBOBJECTS)
$(RM) libjpeg.lib
lib -out:libjpeg.lib $(LIBOBJECTS)
# 添加以下这行
libjpeg.dll: $(LIBOBJECTS)
$(RM) libjpeg.dll
link -dll -out:libjpeg.dll $(LIBOBJECTS)
在jmorecfg.h中添加
#define _WIN32_
#define JPEG_DLL
然后nmake /f makefile.vc nodebug=1就可以编译了。
- Compile libjpeg.dll with vc.net
- vc编译libjpeg
- VC++6.0显示cannot compile the file***:no compile tool is associated with the file extension.
- asp.net调用vc dll
- How to compile a C/C++ DLL for 64 bit with Visual Studio?
- Unity导出IOS项目Error with iOS compile: Cross Compilation job Mono.WebBrowser.dll failed
- compile with math.h
- Qt5 compile with vs2008
- Compile libRTMP with MinGW
- Compile libRTMP with MinGW
- compile boost with -fPIC
- Compile TensorFlow with CMake
- compile vim with python
- VC.Net定义和使用MFC DLL
- 【转载】VC.net 实现dll 编程
- VC++.NET 之DLL部署问题
- VC编译时,提示no compile tool is associated with the file extension错误
- VC编译时,提示no compile tool is associated with the file extension错误 .
- ntfs 数据流
- 那么远的兄弟
- 解决sybase ase数据库被标记为“suspect”的方法
- 无限
- Emacs与visual studio结合
- Compile libjpeg.dll with vc.net
- 可变参数宏
- 【MasterPages实用技巧】为模板增加前端控制①——自动生成页面标题
- 设置solaris9上网
- Sybase ASE DBCC
- 软件工程的一些思考
- 我们都是自己的囚徒
- cygwin下的ftp自动登录
- 使用汇编来编写静态库