Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compiling problem with Pro*C of Oracle 12.2 and VS2012

3476782May 27 2017 — edited May 27 2017

my env:

oracle 12.2 client 32bits

vs ultimate 2012 update 5, with .net framework 4.5 installed

Can anybody help me on this? I cannot get over it these days.

my code has these two includes:

#include "sqlcpr.h"

#include "socket/netfunc.h"

while compiling, I got errors:

error C2632: 'char' followed by 'int' is illegal

error C2371: 'BOOLEAN' : redefinition; defferent basic types

For the first one error, I traced the include files, as below:

--> sqlcpr.h

--> --> oratypes.h

--> --> --> #define boolean int                 // here boolean is defined as int

--> socket/netfunc.h

--> --> winsock2.h

--> --> --> windows.h

--> --> --> --> rpc.h

--> --> --> --> --> ...

--> --> --> --> --> --> rpcndr.h

--> --> --> --> --> --> --> typedef unsigned char boolean;         // here compiler think an 'int' following 'char' and give me error

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2017
Added on May 27 2017
0 comments
806 views