Using Pro*C/C++ Precompiler at the Engineering Network Services
Make sure your Oracle environment is set correctly, i.e. you can connect
to Oracle database via SQL*Plus.
Setup your environment: Run user-setup and select
prog/lang/sun5
Write a Pro*C/C++ program (e.g. myproc.pc). Be sure to put exit(0) at the end of your program. Otherwise, the program would not exit.
Don't forget to commit your database if it has been updated.
Copy a make file /opt/oracle8/product/8.1.5/precomp/demo/proc/demo_proc.mk into the directory where your Pro*C/C++ program is. You can also copy sample files provided by Oracle from the same directory, and compile and link them.