E2501: Unable to open import file ‘filename’ (C++) error in XE5

  

By user3460812 I am working on a firemonkey application.
I am including the file NSPrintInfo.h.
I am doing
#include ;
the compiler can see the header file.

However, NSPrintInfo.h has a few #import statements like #import which gives error E2501: Unable to open import file ‘filename’ (C++).

The file exists, but why does the comppiler can’t import it? #include doesn’t give error; only #import does.
This is true for evert #import in the hearder files.
Why is it so? Is there a workaround?
Thanks,
Priya …read more

Via: StackOverflow

Leave a Reply

Please use your real name instead of you company name or keyword spam.