[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference orarep::nomahs::sql

Title:SQL notes
Moderator:NOVA::SMITHI
Created:Wed Aug 27 1986
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3895
Total number of notes:17726

3860.0. "include_directory option" by CHSR36::LCONS () Tue Feb 04 1997 05:43

How can i use the include_directory option of c compiler with the pre-compiler ?

My goal is to remove the directory specification from the sc code.

EXEC SQL INCLUDE OBJECT instead EXEC SQL INCLUDE dir:OBJECT

Louis
T.RTitleUserPersonal
Name
DateLines
3860.1No idea ?CHSR36::LCONSThu Feb 06 1997 03:584
with cc i can specify /INCLUDE_DIRECTORY.
What can i do with sqlpre/cc ?

Louis
3860.2ORAREP::HERON::GODFRINDOracle Rdb EngineeringFri Feb 07 1997 06:0718
>with cc i can specify /INCLUDE_DIRECTORY.
>What can i do with sqlpre/cc ?

From what I can see, "EXEC SQL INCLUDE file" is not part of the ISO standard
(but then again I may be misreading the standard). So I guess we are pretty
much free to implement it any which way we like ...

That said, the precompiler does not consider the compiler-specific ways of
handling the location of include files.

My suggestions:

- replace all EXEC SQL INCLUDE specifications with #includes and run the source
  through the C pre-processor first, or

- use an explicit logical name also in the #includes 

/albert