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.
連結已複製
2 回應
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.
It would make more sense to post this in the C++ forum.
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