Hi Rami,

If you want to specify an include file using EXEC SQL INCLUDE (which is
only necessary if you have precompile relevant stuff in this file) you
have to use a path relative to the precompiler source file or an
absolute path to the include file. As a default, the precompiler looks
for the include file in the directory of the precompiler source file
first and then in the SDK directory of the precompiler.

Using EXEC SQL INCLUDE it is not possible to change the include file
path at compilation time using a precompiler command line option.

If the header file contains definitions and/or declarations used by the
C compiler only, you can include this header file using the ordinary
#include mechanism. In this case, you have to specify the include
directory (either absolute or relative) as follows:

cpc <precompiler-source-file> -I<header-file-directory>

Regards,

Thomas Simenec
SAP Labs Berlin

-----Original Message-----
From: Rami AL-SAHHAR [mailto:[EMAIL PROTECTED] 
Sent: Samstag, 18. Februar 2006 16:31
To: maxdb@lists.mysql.com
Subject: Path of INCLUDE for cpc compiler
Importance: High

Hello there,

 

Where can we set the path of header files for the INCLUDE statement?

 

When we use "EXEC SQL INCLUDE headerfile.h;" , where the 'CPC' looks for
header file? And how can we change this path at compilation time ?

 

 

Thanks

Rami ALSAHHAR

International Turnkey Systems,(ITS)

www.its.ws <http://www.its.ws/> 

Kuwait

 


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to