osx - Compile a C program with libpng on Mac OS X -


i have little utility wrote in c uses libpng. under linux, install libpng-dev , "gcc myapp.c /usr/lib/libpng.so -o myapp". in mac os x, have xcode tools installed, believe includes libpng. link against, , need specify include path png.h?

try /usr/x11/include/png.h - you'll find libs in ../lib ( or /usr/x11/lib ) well.

edit mavericks doesn't appear have anymore. may need use homebrew or macports install libpng.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -