Cannot find include file: <sqlca.h>


 
Thread Tools Search this Thread
Top Forums Programming Cannot find include file: <sqlca.h>
# 1  
Old 11-06-2010
Cannot find include file: <sqlca.h>

All,
I am getting the following error
Code:
License : Got the license for Sun WorkShop Compiler C SPARC continuing..
"rlnseg_test.c", line 300: cannot find include file: <sqlca.h>
"rlnseg_test.c", line 417: undefined symbol: sqlca
"rlnseg_test.c", line 447: undefined symbol: sqlca
"rlnseg_test.c", line 447: undefined struct/union member: sqlcode
"rlnseg_test.c", line 447: warning: left operand of "." must be struct/union object
"rlnseg_test.c", line 496: warning: left operand of "." must be struct/union object
"rlnseg_test.c", line 530: undefined symbol: sqlca
"rlnseg_test.c", line 553: undefined symbol: sqlca
"rlnseg_test.c", line 576: undefined symbol: sqlca
"rlnseg_test.c", line 603: undefined symbol: sqlca
"rlnseg_test.c", line 649: undefined symbol: sqlca
"rlnseg_test.c", line 657: undefined symbol: sqlca
"rlnseg_test.c", line 657: undefined struct/union member: sqlcode
"rlnseg_test.c", line 657: warning: left operand of "." must be struct/union object
"rlnseg_test.c", line 700: warning: left operand of "." must be struct/union object
"rlnseg_test.c", line 700: warning: left operand of "." must be struct/union object
"rlnseg_test.c", line 702: warning: left operand of "." must be struct/union object
"rlnseg_test.c", line 752: warning: left operand of "." must be struct/union object

Can anyone please tell me what is wrong.

I have copied the required files in the current directory and I am using the command
#cc -o rlnseg_test.exe rlnseg_test.c to complie


Code:
#ls -lrt

-rw-r--r--   1 ec2d     ec2dev1       84 Nov  4 18:23 hello.c
-rw-r--r--   1 ec2d     ec2dev1    96678 Nov  4 21:38 rlnseg_test.c
-rwxr-x---   1 root     root        6492 Nov  5 10:06 hello.exe
-rwxrwxrwx   1 ec2d     ec2dev1     3287 Nov  6 15:51 sqlca.h

---------- Post updated at 12:20 PM ---------- Previous update was at 10:44 AM ----------

I got to know that I have use -I option to make it compile
Code:
#cc -o rlnseg.exe -I . rlnseg.c

# 2  
Old 11-06-2010
sqlca.h is part of oracle Pro*C, look for it among its files.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 11-06-2010
#1: $ORACLE_HOME/precomp/public is where the .h files live

#2: you cannot directly compile code using cc - you have to use proc, then cc.

i.e.,
create myfile.pc; proc myfile.pc; cc myfile.c

In order to search the precomp directory you will have to have
Code:
 proc  -I $ORACLE_HOME/precom/public

as part of the proc command.

--- If you are trying in the .pc file
Code:
#include "sqlca.h"

otherwise the "normal" way in the .pc file is:
Code:
EXEC SQL INCLUDE sqlca.h;

This User Gave Thanks to jim mcnamara For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Include file not running using igawk

Greetings. I'm on section 2.7 Including Other Files into Your Program in "The GNU Awk User’s Guide". I am on HP-UX POSIX running GNU Awk 3.1.0 I have written Test1.awk and Test2.awk as shown here: $cat test1.awk BEGIN { print "This is script test1.\n" } $cat test2.awk ... (2 Replies)
Discussion started by: RUCerius
2 Replies

2. Shell Programming and Scripting

Find Command Include Sub Directory

This script writes the output files to FILES but I don't want to exclude all directories from ABC_CHQ and LYS_ADV, I want to include one sub directory name process which is under ABC_CHQ and LYS_ADV in the search. Right now its excluding everything from prune directories such as ABC_CHQ, LYS_ADV... (10 Replies)
Discussion started by: John William
10 Replies

3. Shell Programming and Scripting

Find big file include current date

Hi, I want to put script. The script is to show file that larger than 100MB include current date (eg: today date). After find the date, it will compress list file and split the tar.gz file. Any idea how to do that? This bash script will run auto everyday. It's will transfer will to other... (12 Replies)
Discussion started by: mzainal
12 Replies

4. Shell Programming and Scripting

How to include file pattern in find command?

Hi I've to remove the files which has the following file pattern in path /home/etc/logs fnm_HST_date1 fnm_hst_date1 fnm_HST_date2 I've used the following code to to remove the files having file names like "HST" . #!/usr/bin/ksh set -x file_path=/home/etc/logs file_nm=HST find... (2 Replies)
Discussion started by: smile689
2 Replies

5. Shell Programming and Scripting

making find/sed to include directory names with spaces

how can i make find/sed to include directory names with spaces the command is like this for i in `find wp-content/themes -type f -print0 | xargs -0 grep -l -iE 'e'`;do sed -i -e 's/word1/word2/gI' "$i";done but it skips one directory names with spaces sed: can't read ./Nova: No such... (5 Replies)
Discussion started by: vanessafan99
5 Replies

6. Shell Programming and Scripting

Need to include two more columns in the file using awk

Hi, I have a input file with many records as below: 1J4RR4GG0BC508200 68646 1 N M i want my output file to be like with columns included dgismdh and timestamp : Example: 1J4RR4GG0BC508200 68646 1 N M dgismdh 2012-02-21 07:22:25.98591 How to do it.can we do using awk? Pls help. (6 Replies)
Discussion started by: sonam273
6 Replies

7. Shell Programming and Scripting

How do I include the file being compared into calculation?

nawk -F, 'NR==FNR{file=FILENAME;a++;next} a{if(FILENAME~file)next;b++;} END{ for(i in a){if(a && !b){print "NEW: "i}} for(i in b){if(b)print i"\t\t"b}}' OFS=, 123.csv *.csv I need to include 123.csv into the equation for the total output currently it compares whatever is on 123.csv against... (27 Replies)
Discussion started by: llcooljatt
27 Replies

8. Programming

Not able to compile Pro*c file due - give errors and points to /usr/include/.. file

I am trying to compile the pro*C file but gives errors. It says it encountered "std" while it was expecting ; , = ( $ $ORACLE_HOME/bin/proc tradewind/dataaccess/Blob.pcc Pro*C/C++: Release 10.2.0.3.0 - Production on Fri May 9 11:10:54 2008 Copyright (c) 1982, 2005, Oracle. All rights... (0 Replies)
Discussion started by: shafi2all
0 Replies

9. UNIX for Dummies Questions & Answers

rename a file to include the ip address

I am trying to pull 100 different files from 100 different servers, each file has the same name. To prevent over writing of the files i want to edit the file name to include the IP address of where it came from. Being new to Unix I have no idea how to script this.... Help.. Regards Mac (10 Replies)
Discussion started by: MrMac
10 Replies

10. Shell Programming and Scripting

How to include PDF file with spaces

I am able to include a pdf file as an attachment in an email using the following: echo "" > reports elm -s "RW100 PDF Reports" me@myemail.com < reports However, if I have a filename that contains some spaces, I'm not so lucky. I've tried: echo "" > reports but no luck. I keep getting... (1 Reply)
Discussion started by: lawadm1
1 Replies
Login or Register to Ask a Question