NonStop Servers
1752861 Members
4563 Online
108791 Solutions
New Discussion

Defines for SQL Cross Compiler Builds

 
Scott991
Occasional Contributor

Defines for SQL Cross Compiler Builds

Hi.

I have a C program that contains SQL which I'm trying to compile using the C89 compiler from the Cross compilers (L15.02) .

For the -Wdef_obey command line parameter I'm specifiying a text file that contains defines to our SQL tables.

E.g. ADD DEFINE =OBJECT_TABLE, CLASS MAP, FILE $DEV.RFDA048.OBJECTQ

However when compiling it complains with the following message:

*** ERROR from SQL [-200]: There is no DEFINE for =OBJECT_TABLE.
0.090     INVOKE =OBJECT_TABLE AS  h_object_table_def
 
If I change the name of the text file in the def_obey parameter to one that doesn't exist then it acknowledges that the file doesn't exist so I'm happy that it's finding the original file that I speciified but for some reason it's not setting up the defines when performing the compile.
 
The -Wsqlhost and -Wsqluser parameters are setup correctly so access shouldn't be an issue as far as I know.
 
Any ideas as to what I might be missing or doing wrong?
 
 
Cheers
Scott