Subject | Re: [firebird-support] How to compile and link a .c (C object file given by GPRE) with gcc on Linux? |
---|---|
Author | Nick Upson |
Post date | 2005-01-16T15:43:29Z |
In article <20050116145200.22363.qmail@...>, Mallikarjuna m wrote:
/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
--
Nick
-----We Solve your Computer Problems---
Founder & Listowner of the Prolifics User Group
Panther, Ingres, UNIX, Interbase, Firebird - Available Shortly
> I am using FirebirdSS-1.5.2.4731-0.i686 in Redhat Linux 9.0.compilint a program called tacap
>
> 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
/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
--
Nick
-----We Solve your Computer Problems---
Founder & Listowner of the Prolifics User Group
Panther, Ingres, UNIX, Interbase, Firebird - Available Shortly