Re: Question about Pro*C and .h

From: Jeff Kish <jeff.kish_at_ait-mmii.com>
Date: Thu, 09 Aug 2001 12:30:17 -0400
Message-ID: <bie5ntg1b3vjsmn8ekk5besqh0p5gcprkm_at_4ax.com>


I am not sure exactly what errors you are getting Alvaro Palma Aste. We do this all the time.
We create a set of pc files and precompile and then compile them. Then any other projects that need them can include the headers for them and link to the cpp's.

HTH,
Jeff

On Sun, 22 Jul 2001 06:56:44 GMT, Álvaro Palma Aste <apalma.nospam_at_cec.uchile.cl> wrote:

>I´m writing a program in Pro*C, which have a lot of functions
>that uses SQL statements. This functions are also going to be
>used for a lot of other programs. My idea was to create a
>functions.h file, and link this in all the .pc files using
>
>#include "functions.h"
>
>but when I compile, it returns a lot of error related to the
>fact that can´t exists a library linked through #include with
>SQL statements inside it.
>
>My question is: What other ways to link that library can I use?
>
>I think that I can compile this library as an object code
>(functions.o) and include it using gcc
>
>gcc **** -lfunctions ****
>
>but I´m not sure of the sintax ans the way to do that.
>
>Can somebody give another idea?
>
>Thanks a lot
Received on Thu Aug 09 2001 - 18:30:17 CEST

Original text of this message