Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

CPUCOUNT.CPP in Linux

postaquestion
Novice
816 Views

What environment is need for compiling the CPUCOUNT.cpp in Linux? I get an compile time error for windows.h header file,which cannot be found.....is there an alternative for windows.h header file that can be used in Linux?

I have Intel 10.0 Compiler for Linux and the Redhat 4.0 operating system....and all other libraries that werespecified.

0 Kudos
2 Replies
TimP
Honored Contributor III
816 Views
windows.h generally does things which aren't intended to be compatible with linux. In some such cases, you can make progress with the cygwin implementation of windows.h. This expresses that part of windows.h which could be reverse engineered, in terms of gcc, thus, possibly, compatible with icc or icpc.
It would make more sense to post this in the C++ forum.
0 Kudos
Lorri_M_Intel
Employee
816 Views

I'm not sure where you got cpucount.cpp, but if it's the onereferenced fromthe Intel page below,you need to define LINUX when you build it, as icc -DLINUX cpucount.cpp

http://www3.intel.com/cd/ids/developer/asmo-na/eng/275339.htm

If you have a different version, let me recommend you take a look at this page, scroll down to the "code downloads" and download the cpucount.cpp from there.

- Lorri

0 Kudos
Reply