10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

OCCI Demonstration Programs<br />

# 2. A single external procedure demo whose 3GL routines do not use the<br />

# "with context" argument:<br />

#<br />

# make -f demo_rdbms.mk extproc_no_context SHARED_LIBNAME=libname<br />

# OBJS="demo.o ..."<br />

# e.g. make -f demo_rdbms.mk extproc_no_context SHARED_LIBNAME=epdemo.so<br />

# OBJS="epdemo1.o epdemo2.o"<br />

#<br />

# 3. A single external procedure demo where one or more 3GL routines use the<br />

# "with context" argument:<br />

#<br />

# make -f demo_rdbms.mk extproc_with_context SHARED_LIBNAME=libname<br />

# OBJS="demo.o ..."<br />

# e.g. make -f demo_rdbms.mk extproc_with_context SHARED_LIBNAME=epdemo.so<br />

# OBJS="epdemo1.o epdemo2.o"<br />

# e.g. make -f demo_rdbms.mk extproc_with_context<br />

# SHARED_LIBNAME=extdemo2.so OBJS="extdemo2.o"<br />

# e.g. or For EXTDEMO2 DEMO ONLY: make -f demo_rdbms.mk demos<br />

#<br />

# 4. To link <strong>C++</strong> demos:<br />

#<br />

# make -f demo_rdbms.mk c++demos<br />

#<br />

#<br />

# NOTE: 1. ORACLE_HOME must be either:<br />

# . set in the user's environment<br />

# . passed in on the command line<br />

# . defined in a modified version of this makefile<br />

#<br />

# 2. If the target platform support shared libraries (e.g. Solaris)<br />

# look in the platform specific documentation for information<br />

# about environment variables that need to be properly<br />

# defined (e.g. LD_LIBRARY_PATH in Solaris).<br />

#<br />

include $(ORACLE_HOME)/rdbms/lib/env_rdbms.mk<br />

# flag for linking with non-deferred option (default is deferred mode)<br />

NONDEFER=false<br />

DEMO_DIR=$(ORACLE_HOME)/rdbms/demo<br />

DEMO_MAKEFILE = $(DEMO_DIR)/demo_rdbms.mk<br />

DEMOS = cdemo1 cdemo2 cdemo3 cdemo4 cdemo5 cdemo81 cdemo82 \<br />

cdemobj cdemolb cdemodsc cdemocor cdemolb2 cdemolbs \<br />

OCCI Demonstration Programs A-5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!