Pro*C Program Fails Compilation for SIZE_T in SQLCPR.H with Version 12.1
(Doc ID 2025201.1)
Last updated on AUGUST 01, 2024
Applies to:
Precompilers - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]Information in this document applies to any platform.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data
from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.
Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
Symptoms
1) A Pro*C program fails during the C compilation stage for "size_t" referenced in sqlcpr.h, saying it is undefined.
2) The program is not directly including sqlcpr.h, but is including sqlda.h.
3) The Oracle client version is 12.1.0.1 or 12.1.0.2.
4) The same code compiles successfully with an 11g installation.
For example, compilation of the above code fails with errors like:
".../precomp/public/sqlcpr.h", line 79: error #2020: identifier "size_t" is undefined
or:
.../precomp/public/sqlcpr.h:79: error: expected declaration specifiers or '...' before 'size_t'
Changes
The client software was upgraded to version 12.1 or a new Pro*C program is being compiled with 12.1.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |