开发者

Trouble compiling libpng (& zlib) using RVCT 4.0's armcc compiler

I'm trying to compile libpng & zlib using the RVCT 4.0 armcc compiler. However armcc cannot find 'fcntl.h', which I assume is a standard C library. Cygwin has fcntl.h (and the associated files types.h and _types.h), but when I use those, I get various compilation errors.

Should I be using Cygwin's version of standard C libraries, or RVCT's? If the latter is correct, where do I get RVCT's versions of fcntl.h, types.h and _types.h?

Thanks! Arju开发者_C百科n


Which version of zlib/libpng are you trying to compile? fcntl.h is POSIX standard, not ANSI/ISO C. RealView doesn't care about POSIX. Compiling the zlib with RVCT 4.0 has always worked like a breeze. I've tried libpng: well, it works if you define RISCOS, to prevent the sources from including sys/types.h (yet another POSIX file). Here's my command line: armcc -c *.c -I/tmp/zlib/ -DRISCOS

Hope this helps

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜