Hi Everyone,
I'd like to use Intel Compiler v11 as default compiler in C::B. I applied the similar settings defined in
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Intel_C.2B.2B_Compiler as the following
For executables:
C:\Program Files\Microsoft Visual Studio 8\VC\bin
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE
Z:\Libraries\Microsoft SDKs\Windows\v6.1\bin
For includes:
C:\Program Files\Intel\Compiler\11.0\066\cpp\include
C:\Program Files\Microsoft Visual Studio 8\VC\include
Z:\Libraries\Microsoft SDKs\Windows\v6.1\Include
For libraries :
C:\Program Files\Intel\Compiler\11.0\066\cpp\bin\ia32\lib
C:\Program Files\Microsoft Visual Studio 8\VC\lib
Z:\Libraries\Microsoft SDKs\Windows\v6.1\Lib
Then I tried the compile a source which uses OpenCV library include file, cxmisc.h, and gives an error in the following preprocessor check lines of the header file and exits, which means it goes the last #elif condition. When I check if the C::B can find the definition of WIN32, it can find the definition of this macro in Ole2.h of the SDK header but it can the definition of _MSC_VER and therefore I guess, it it goes till last #elif preprocessor condition which is equal to the error condition. I can not see the reason of this error. I'd be grateful to anyone who can help me resolve this issue ?
Regards
Cem
/****************************************************************************************\
* Common declarations *
\****************************************************************************************/
/* get alloca declaration */
#ifdef __GNUC__
#undef alloca
#define alloca __builtin_alloca
#elif defined(WIN32) || defined(WIN64)
#if defined(_MSC_VER) || defined(__BORLANDC__)
#include <malloc.h>
#endif
#elif defined HAVE_ALLOCA_H
#include <alloca.h>
#elif defined HAVE_ALLOCA
#include <stdlib.h>
#elif <------------GIVES ERROR AT THIS CONDITION
#error
#endif
I can not find the reason of that _MSCVER can not be recognized by the compiler ....