Skip site navigation (1) Skip section navigation (2)

Problem -- pgc

From: gomathi raju <gomathi_raju(at)usa(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Problem -- pgc
Date: 2000-05-17 16:06:24
Message-ID: 20000517220624.5027.qmail@nw171.netaddress.usa.net (view raw or flat)
Thread:
Lists: pgsql-novice
Hi friends,

I have created a .pgc file. This file needs some host variables. But I want to
declare the host variables in some
other header file and I just want to use it in .pgc file. The host variables
were declared in 
a file eS_IMhost.h , but again the size of the host variables are defined in
another header file
namely mail_def.h. So I am including eS_IMhost.h and mail_def.h in my .pgc
file.
These files exist in the current directory and in a path where I have kept all
header files.
The path were specified in buildpg also.
Still I am getting error saying the host variable undeclared.
I have to declare the host variables in a header file and its size in another
file, 
and I have to use them in .pgc


Example:
(1)MY a.pgc has

#include<sqlca.h>
#include<mail_def.h>
#include<eS_IMhost.h>

DB_Select()
{
Select name into :h_name from mylist;
}

(2) My eS_IMhost.h is
#include<sqlca.h>
#include<mail_def.h>
#include<eS_IMhost.h>
{

EXEC SQL BEGIN DECLARE SECTION;

char h_name[ESM_NAME_LEN +1];


EXEC SQL END DECLARE SECTION;

}

(3) My mail_def.h has

int ESM_NAME_LEN ;

Please give me solution as soon as possible to the following mail id
gomathir(at)technauts(dot)com 
bye
gomathi


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

pgsql-novice by date

Next:From: Webb SpragueDate: 2000-05-17 19:15:06
Subject: Re: Install Question
Previous:From: Patrick ReedDate: 2000-05-17 13:59:19
Subject: Install Question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group