C/C++ Programmer's Guide (G06.25+)
TNS C Compiler Messages
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
20-30
Types of Compiler Messages
170
The default structure for a C string that is used as an SQL host variable is a null 
terminated array of characters. The char_as_array option of the SQL pragma directs 
the compiler to pass strings to SQL as an array of characters with no null terminator. 
The C compiler encountered two SQL pragmas with the char_as_array option 
specified. Therefore, the default of a C string being a null-terminated array of 
characters is being used.
171
 In SQL, when you have an exec sql BEGIN DECLARE SECTION directive you must 
have a matching exec sql END DECLARE SECTION directive. The C compiler 
encountered an END DECLARE SECTION directive without a matching BEGIN 
DECLARE SECTION directive.
172
When you specify the SQLMEM pragma, you must have previously specified the XMEM 
pragma.
173
When you specify the SQLMEM pragma, the XMEM and SQL pragmas must have been 
previously defined.
174
The C compiler encountered a sizeof function whose argument does not have a 
complete type. In this example, the compiler issues this error message because the 
type of x is not completely defined.
struct x;
 ...
sizeof x;
character format in SQL directive was set twice; default is 
used
missing end declare section directive for previous begin 
declare section directive
sqlmem directive only valid with XMEM compilation
illegal sqlmem option
the argument of sizeof function has an incomplete type










