I am unable to compile the OCI files which used to work fine under VS6. I am trying the release version of Microsoft Visual Studio.NET (VS7). I get the following errors:
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\RpcNdr.h(147) : error C2632: 'char' followed by 'int' is illegal
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\RpcNdr.h(147) : warning C4091: 'typedef ' : ignored on left of 'unsigned char' when no variable is declared
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WTypes.h(1072) : error C2371: 'BOOLEAN' : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\WinNT.h(746) : see declaration of 'BOOLEAN'
These are all conflicts with the boolean type defined by RpcNdr.h and by the OCI files.
Is there a newer version of the OCI files that I can use? Is there a flag I need to change?
Hello. I had a simmilar problem using Qt 4.7.4 with Microsoft Visual Studio 2010. When I added #include <occi.h> to my project I started getting these compilation errors.
I solved the problem including an extra line #include <windows.h> before #include <occi.h>, so Windows had a chance to define what it needed.