Sponsored Content
Top Forums Programming Cannot find include file: <sqlca.h> Post 302469421 by thana on Saturday 6th of November 2010 02:50:02 AM
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

 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
strip(1)							   User Commands							  strip(1)

NAME
strip - strip symbol table, debugging and line number information from an object file SYNOPSIS
/usr/ccs/bin/strip [-lVx] file... DESCRIPTION
The strip command removes the symbol table SHT_SYMTAB and its associated string table, debugging information, and line number information from ELF object files. That is, besides the symbol table and associated string table, the following sections are removed: .line .debug* .stab* Once this stripping process has been done, limited symbolic debugging access is available for that file. Therefore, this command is nor- mally run only on production modules that have been debugged and tested. If strip is executed on a common archive file (see ar.h(3HEAD)) in addition to processing the members, strip will remove the archive symbol table. The archive symbol table must be restored by executing the ar(1) command with the -s option before the archive can be linked by the ld(1) command. strip will produce appropriate warning messages when this situation arises. strip is used to reduce the file storage overhead taken by the object file. OPTIONS
The amount of information stripped from the ELF object file can be controlled by using any of the following options: -l Strip line number information only.Does not strip the symbol table or debugging information. -V Prints, on standard error, the version number of strip. -x Does not strip the symbol table. Debugging and line number information may be stripped. OPERANDS
The following operand is supported: file A path name referring to an executable file. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of strip: LANG, LC_ALL, LC_CTYPE, LC_MES- SAGES, and NLSPATH. EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/tmp/strp* Temporary files ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbtool | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
ar(1), as(1), ld(1), elf(3ELF), tmpnam(3C), a.out(4), ar.h(3HEAD), attributes(5), environ(5), standards(5) NOTES
The symbol table section will not be removed if it is contained within a segment or if the file is a relocatable object. The line number and debugging sections will not be removed if they are contained within a segment or if their associated relocation section is contained within a segment. SunOS 5.10 15 Jan 2003 strip(1)
All times are GMT -4. The time now is 02:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy