[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pngpp-devel] Re: can't find endian.h

From: Alexander Shulgin
Subject: [pngpp-devel] Re: can't find endian.h
Date: Tue, 1 Jul 2008 14:51:50 +0300

On Tue, Jul 1, 2008 at 8:09 AM, wangcf, Student <address@hidden> wrote:
> Dear shulgin,
> I tried to compile an easy example using your PNG++, and encountered such an
> error:
> /.../wangcf/include/png++/generator.hpp:39:20: error: endian.h: No such file
> or directory
> My computer uses Mac OS.


The file endian.h is typically found on *nix-like systems and provides
macros to test little/big-endianness of the target processor.

It seems that #include <endian.h> (see png++/config.hpp) doesn't find
the file on Mac OS.  I believe that correctly formed endian.h should
be present on your system, but is placed at some other location.

You can try to use this command:

$ locate endian.h

to find the correct path to this file.  Then adjust config.hpp like this:

#if defined(__GLIBC__)

#if defined(???) // some macro defined when compiling on Mac OS

#include <???/endian.h>


#include <endian.h>


#elif defined(__WIN32)

Please keep the mailing list in CC: to help other Mac OS users. ;)

Tip: use Google's cache if the page does not load. :-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]