Subject Re: [firebird-support] How to compile and link a .c (C object file given by GPRE) with gcc on Linux?
Author Nick Upson
In article <20050116145200.22363.qmail@...>, Mallikarjuna m wrote:
> I am using FirebirdSS- in Redhat Linux 9.0.
> I compiled a C file (file.e) with the preprocessor (GPRE) and got the object file (file.c).
> I want to know how to compile and link with gcc compiler.
> I tried with the following commands:
> gcc -o file -I /opt/firebird/include file.c

compilint a program called tacap

/opt/firebird/bin/gpre -c -n tacap.e
gcc tacap.c -c -w -I/opt/firebird/include tacap.o
gcc: tacap.o: linker input file unused because linking not done
gcc -o tacap tacap.o -lgds -ldl -lcrypt

-----We Solve your Computer Problems---
Founder & Listowner of the Prolifics User Group
Panther, Ingres, UNIX, Interbase, Firebird - Available Shortly