Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

#include <sqlca.h> or EXEC SQL INCLUDE SQLCA

278920May 22 2002
Which is more appropriate when?

I use ProC 8.1.7 to generate *.cpp files from *.pc files, and then use Visual Studio to build my client from the *.cpp files.

In my *.pc source, should I use

#include <sqlca.h>

or

EXEC SQL INCLUDE SQLCA

The manual says you can use either one, but doesn't explain if/when one statement is better than the other.

Are they truely equivalent?
Which is better when and why?
If I use both in the same source file, could I be in trouble?

If I use '#define SQLCA_STORAGE_CLASS extern', then I assume that all of my *.pc files will use the same sqlca. Where would the sqlca actually get defined?

Respectfully,

Andrew Sackett
Andrew.Sackett@wcom.com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2002
Added on May 22 2002
1 comment
2,964 views