1. error: sqlca. h: Nosuchfileordirectory: test. c: 152: 19: error: sqlca. h: Nosuchfileordirectorysqlca. h command after correction under $ Oracle_HOME/precomp/public/: gcc-otesttest.c-I $ ORA
1. error: sqlca. h: No such file or directory
When gcc-o test. c is executed:
Test. c: 152: 19: error: sqlca. h: No such file or directory
Sqlca. h is under $ Oracle_HOME/precomp/public /.
Command: gcc-o test. c-I $ ORACLE_HOME/precomp/public
2. undefined reference to 'sqlcxt'
The following error occurs when running the command in step 5:
Test. c :(. text + 0x5e5): undefined reference to 'sqlcxt'
$ ORACLE_HOME/lib/libclntsh. so is required
-L $ ORACLE_HOME/lib-l clntsh must be added.
The correct command is:
Gcc-o test. c-I/home/oracle/product/10.2.0/db_1/precomp/public-L $ ORACLE_HOME/lib-l clntsh
3. The proc directory cannot be executed.
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib