Libffi header problem

Bill Northcott w.northcott@unsw.edu.au
Tue Nov 30 00:22:00 GMT 2004


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



More information about the Gcc mailing list