__SWORD_TYPE

__SWORD_TYPE

The Glibc 2.3.2 headers contain a bits/types.h which
defines __SWORD_TYPE as an int (on systems with 32-bit
word size). It appears that the
subsitute_headers/bits/types.h and sys/types.h
files for the Intel C++ Compiler (v7.1 patch 031) for
Linux do not contain this definition. Some code I've
attempted to compile includes sys/statfs.h, which
includes bits/statfs.h, which in turn requires the
__SWORD_TYPE definition. This code has failed to
compile. I haven't yet tried defining __SWORD_TYPE
myself. Am I correct in assuming headers under the
compiler's substitute_headers directory override those
in /usr/include when using ICC? Has anyone else had a
similar experience?

Thanks in advance.

Chris

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Chris, you're entirely correct. This will be fixed in our upcoming Intel C++ Compiler for Linux* 8.0 which won't include its own types.h header.

Brandon
Intel Developer Support

For on-line assistance: http://support.intel.com/support/performancetools
For user forums: http://intel.com/ids/community
For product support information: http://www.intel.com/software/products/support
* Intel and Pentium are registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries
* Other names and brands may be claimed as the property of others

Brandon Hewitt
Technical Consulting Engineer

For 1:1 technical support: http://premier.intel.com

Software Product Support info: http://www.intel.com/software/support

Leave a Comment

Please sign in to add a comment. Not a member? Join today