What you do is write Oracle macro statements in your C++ program. Consult Oracle for these. They will be things like OpenDatabase, etc.
Next, you run your C++ code through an Oracle-provided preprocessor which changes those Oracle macros into the actual C calls required to do the job. Then you send the Oracle-preprocessed file you your C++ build and off you go.
All of this is documented by Oracle for you.