Include file 'features.h' not found

892 views
Skip to first unread message

KK Kid

unread,
Apr 13, 2016, 6:41:24 AM4/13/16
to Native-Client-Discuss
Hi, 

I compile my code with c++11, use CXXFLAGS+= -std=gnu++11 on my makefile
but with some errors as following:

In file included from pepper_47/toolchain/mac_pnacl/le32-nacl/include/c++/v1/iostream:37:

pepper_47/toolchain/mac_pnacl/le32-nacl/include/c++/v1/__config:335:10: fatal error: 'features.h' file not found

#include <features.h>

         ^

In file included from /pepper_47/toolchain/mac_pnacl/le32-nacl/include/c++/v1/chrono:278:

/pepper_47/toolchain/mac_pnacl/le32-nacl/include/c++/v1/__config:335:10: fatal error: 'features.h' file not found

#include <features.h>


I could compile my native code by using Xcode, and I didn't find anyone have the same situation.
Could someone give me some advice to fixed this?

Thank you 

KK Kid

Victor Khimenko

unread,
Apr 13, 2016, 7:51:51 AM4/13/16
to Native Client Discuss
__config file tries to include "features.h" if non-Android Linux is detected. PNaCl is not Linux thus __linux__ define shouldn't be there. Try to find out what and where defines it?

KK Kid

unread,
Apr 13, 2016, 10:20:12 PM4/13/16
to Native-Client-Discuss

Hi, khim

Thank for your reply. It help me resolved compile error. Thanks !! 

KK Kid
Reply all
Reply to author
Forward
0 new messages