About $include


 
Thread Tools Search this Thread
Top Forums Programming About $include
# 1  
Old 04-05-2006
About $include

Hi,
In my code,I come across include statements with $ sign what it represents...

$include "getsum.h" /* This how I seen in my code */

Sarwan

Last edited by sarwan; 04-05-2006 at 03:56 AM.. Reason: To form a meaning full sentence.
# 2  
Old 04-05-2006
include directives need to go with '#'
# 3  
Old 04-05-2006
I am in maintenence team, I found this in already existing code only......

so this will have meaning.... $include "getsum.h"
# 4  
Old 04-05-2006
I've not seen a C compiler that does that.

What OS and compiler do you run? Are you using a precompiler? Some precompilers use syntax like that.
# 5  
Old 04-06-2006
$include "getsum.h"....
actually this getsum.h contains ESQL(Embeded SQL) Header structures......
my code uses pro*c for DB connection.
My OS is SUNsolaris.......
And I don't know whether I am using any precompiler, it's not a standalone program, so i have certain procedure for compilation.... but I thought it may have some precompiler, b'coz I am using pro*c ... I don't have a much idea about pro*c ... this is my 1st time I am working with pro*c....

plz clarify.....

Sarwan

Last edited by sarwan; 04-06-2006 at 08:12 AM.. Reason: For better clarity
# 6  
Old 04-06-2006
Pro*C is a precompiler.

EXEC SQL INCLUDE
is the Pro*C directive to include a file. I don't understand the $ thing at all. I just tried a $include in small .pc file and got a precompiler error. I've been using Pro*C since it came out in 1986-87, and I don't recall the $ thing at all.

I am guessing that line "$include" line is commented out, or blocked out with an #if directive. Sorry I don't know any more.

It will help you in your job to learn exactly how your makefile works.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Include files

I have an implementation file tomog.cpp that implements a class called Tomog where I need to include its header file which resides in another place. How can I best specify the include file? I would not like to do #include "../../tomso/tomography/tomog.hpp" I wish to do instead ... (3 Replies)
Discussion started by: kristinu
3 Replies

2. Red Hat

%include in kickstart

RHEL 5.4 I'm trying to use %include statements in my kickstarts, and am running into some problems. In %pre, I can %include /mnt/source/isolinux/setup-questions and that works just fine. One of the things it does is echo out several variables to /tmp/vars In %post --nochroot, I copy... (2 Replies)
Discussion started by: jnojr
2 Replies

3. Programming

help with C #include

i have three files a.h t.c and p.c a.h has 3 functions only and does not include anything p.c has one function i made called go t.c has a main function and calls the go function, it includes a.h only i run the program using gcc -Wall -g -o t p.c t.c but i get a warning, implicet... (2 Replies)
Discussion started by: omega666
2 Replies

4. Shell Programming and Scripting

scripting help: to include r in between / :

Hi Experts, Greetings! , I have a list of lvs that is having 3 column separated by / . Want to add "r" after the 3rd / : /dev/vgdbnhpu/u01 /dev/vgdbnhpu/u02 /dev/vgdbnhpu/u03 /dev/vgdbnhpu/u04 /dev/vgdbnhpu/u05 /dev/vgdbnhpu/u06 /dev/vgdbnhpu/u07 /dev/vgdbnhpu/u08... (4 Replies)
Discussion started by: rveri
4 Replies

5. Shell Programming and Scripting

include in script

Hello, I have a script and a second file that contains all parameters needed for the script. How can I include this file in the script ? I tried source but I have a "no such file or directory" error. :) (1 Reply)
Discussion started by: pppswing
1 Replies

6. Programming

Include directive

Hi there, I'm working on a c++ project and I need to use some libraries which are part of a framework. I installed it on my home directory, and alle the .hh are located in subdirs of my home. I'd like to include the files I need just as if they where std c header, that is: #include... (2 Replies)
Discussion started by: clalfa
2 Replies

7. Shell Programming and Scripting

how to include code

Hi, I have an easy question... My ksh script has a section with non ksh script in it - let's pretent it is VBA code. I need to include this vba script in my ksh script into so that my VBA script can be reused elsewhere by other ksh script by "$include" into other ksh scripts. What is the syntax... (3 Replies)
Discussion started by: ihot
3 Replies

8. UNIX for Advanced & Expert Users

dhcp include

I want to include all the subnet files under /etc/dhcpd/ to /etc/dhcpd.conf so here is my content of dhcpd.conf ... include "/etc/dhcpd/*"; however, the check-syntax reports syntax error, as they do not recognize the wildcard *, and display that " file /etc/dhcpd/* could not be found. ... (1 Reply)
Discussion started by: fredao
1 Replies

9. UNIX for Dummies Questions & Answers

#include?

I have a file that contains some variables that I may want to share throughout multiple scripts. I think there's an #include command in UNIX. How do I use it (in korn)? (1 Reply)
Discussion started by: yongho
1 Replies

10. Programming

Include files

Hi, I am new to the unix networking. I have written one client and server for UDP sockets.. I got the following errors while conpilation I have include all include files. Could some one help ...is there any other file to be included.....? will the include files change on different unix... (3 Replies)
Discussion started by: reddyb
3 Replies
Login or Register to Ask a Question