Problem with postgreSQL .c program generated from ecpg preprocessor

Hi!! Friends..
I have a simple problem. When i generate a C Source file from the "ecpg"
preprocessor where i am giving a [file].pgc file as input and successfully
getting a [file].c C Source file as output. But when i am compiling the C
Source file with the cc/gcc compiler as
# cc -I /usr/local/pgsql/include [file].c it is giving an error that reads
# [file].pgc:5: parse error before '{' token
I am trying this from past two days but am unable to go a step ahead.
There is no '{' writtin by me. That's there in the generated [file].c
Source code.

Sometimes I get error as this when I try to run a properly written
[file].pgc file downloaded from the internet ...
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0x18): In functio
n `_start':
../sysdeps/i386/elf/start.S:77: undefined reference to `main'
collect2: ld returned 1 exit status
Please explain me what this means.

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion