You send them through the ecpg pre-compiler first, which replaces all the EXEC SQL statements with C, and then compile. When you compile, make sure that you link to the correct libraries (RTFM).
MikeA
>> -----Original Message-----
>> From: Nilesh A. Phadke [mailto:nphadke@csgrad.cs.vt.edu]
>> Sent: 01 April 2000 21:49
>> To: pgsql-general@postgreSQL.org
>> Subject: [GENERAL] Embedded SQL -- ecpg
>>
>>
>>
>>
>> > ----------
>> > From: Nilesh A. Phadke[SMTP:NPHADKE@CSGRAD.CS.VT.EDU]
>> > Sent: Saturday, April 01, 2000 10:49:09 PM
>> > To: pgsql-general@postgreSQL.org
>> > Subject: [GENERAL] Embedded SQL -- ecpg
>> > Auto forwarded by a Rule
>> >
>> hello ,
>> I am new to this embedded sql stuff.
>>
>> How do you compile the C program that has this EXEC SQL
>> statements.....??
>>
>> Thanks in advance for the help,
>> Nilesh.
>>