Re: [Anjuta-list] preprocessor
- From: Biswapesh Chattopadhyay <biswapesh_chatterjee tcscal co in>
- To: davidgn servidor unam mx
- Cc: Anjuta List <anjuta-list lists sourceforge net>
- Subject: Re: [Anjuta-list] preprocessor
- Date: Mon Feb 25 20:55:01 2002
On Tue, 2002-02-26 at 10:03, anjuta-list-admin lists sourceforge net
wrote:
>
>
> I hope this is the right list to ask this.
> I am making a small program with gtk, that uses postgreSQL.
> I thought of doing it with its embedded sql implementation ecpg.
> ecpg preprocess a .pgc file (which is c) name.pgc and outputs name.c
>
> How can i add both, name.pgc and name.c to a project, but tell it that .pgc
> files
> must only be preprocessed with epgc, and not compiled with gcc? (also,
> before anyother file)
Well, I faced a similar situation (using PRO *C - the Oracle
pre-compiler) and my solution was not to add the .c file to the project
at all, but just the .pc file (equivalent to the .pgc probably). Then
simply add a rule in Makefile.am like so:
.pc.c:
proc <Options>....
This should do the trick. (I'm assuming here that you're using
autoconf/automake, the basic idea should remain the same anyway.
Rgds,
Biswa.
>
> Thank you.
>
>
> --
> ICQ: 15605359 Bicho
> =^..^=
> First, they ignore you. Then they laugh at you. Then they fight you. Then
> you win. Mahatma Gandhi.
> -------------------------------気検体の一致
> ------------------------------------
> 暑さ寒さも彼岸まで。
> 恋にししょうなし。恋はしあんの他。
> アン アン アン とっても大好き
>
>
> _______________________________________________
> Anjuta-list mailing list
> Anjuta-list lists sourceforge net
> https://lists.sourceforge.net/lists/listinfo/anjuta-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]