makefile - 如何编译 “Improved pngnq”?

Improved pngnq源归档文件不带有makefile(解压缩时要小心,没有顶层目录)。

如何在openSUSE 11.4上进行编译?安装了libpng/zlib header 和常用的C工具链。

pngnq$ gcc *.c
pngcomp.c: In function ‘main’:
pngcomp.c:111:37: error: ‘VERSION’ undeclared (first use in this function)
pngcomp.c:111:37: note: each undeclared identifier is reported only once for each function it appears in
rwpng.c: In function ‘rwpng_read_image’:
rwpng.c:130:7: warning: passing argument 3 of ‘png_get_IHDR’ from incompatible pointer type
/usr/include/png.h:2300:1: note: expected ‘png_uint_32 *’ but argument is of type ‘ulg *’
rwpng.c:130:7: warning: passing argument 4 of ‘png_get_IHDR’ from incompatible pointer type
/usr/include/png.h:2300:1: note: expected ‘png_uint_32 *’ but argument is of type ‘ulg *’

最佳答案

您可以在sourceforge上使用该版本吗?它似乎是较新的版本,并包含以下注释:

includes improvements made by porneL



在您引用的页面上谁是更改的作者。

https://stackoverflow.com/questions/6580857/

相关文章:

c# - 在LINQ中设置或更新数据

python - Mac OS X中的python错误 undefined symbol : “_P

emacs - 字节编译错误

python - 安装Python库时出错?

.net - Visual Studio Web引用错误

compiler-errors - 试图获取yacc代码进行编译

date - 不同时区的同一日期

actionscript-3 - AS3在第一个音频文件完成播放后播放第二个音频文件

compiler-errors - mingw提供错误-C编译器无法创建可执行文件

time - 无法使用struct tms编译代码