Using Oracle Database Instant Client
You can build a C/C++ application that uses Oracle Database Instant Client and
connect to an Oracle Database server. If you want to build a 64-bit application and use
instantclient_19_8/sdk/demo.mk
file, then perform the following
steps:
The compilation options are as follows:
-idirafter .
-DMAC_OSX -D_GNU_SOURCE -D_REENTRANT -g -m64 -mmacosx-version-min=10.13
<c_file_name> -I../include
The link options are as follows:
-g -m64 -mmacosx-version-min=10.13 -rpath
full_path_to_instantclient_19_8_libs application_name -L../../ -locci -lclntsh
-lpthread
Parent topic: Oracle Database Instant Client Postinstallation Tasks