This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Libffi header problem
- From: Bill Northcott <w dot northcott at unsw dot edu dot au>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 30 Nov 2004 10:48:52 +1100
- Subject: Libffi header problem
- References: <1101764821.18287.ezmlm@gcc.gnu.org>
I recently built a compiler from the tag apple-gcc-4020. MacOS X
10.3.6/Darwin 7.6
I modified the Apple build script so as to build libffi.
The ffitarget.h header file was installed in a subdirectory libffi of
the compiler include directory.
ffi.h:63 reads
#include <ffitarget.h>
This will fail at compile time with a 'no such file or directory'.
It seems to me that either ffitarget.h should be installed in the
compiler include directory or ffi.h:63 should be altered to read:
#include <libffi/ffitarget.h>
I made this latter change and everything worked correctly.
Bill Northcott