Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Compiling Pro*C output with GCC
Alessandro Bertini <mc6549_at_mclink.it> writes:
>Hi all
>Has anyone successfully compiled the output from the pro c precompiler
>with gcc ?
>I have found that the makefiles shipped with Oracle are made for the Sun
>C complier and have its options... uncompatible with gcc.
>Any help (es. an example makefile for gcc) will be apprecied.
Try this _very_ simple one
--START Makefile
all: yourfile
include $(ORACLE_HOME)/precomp/lib/env_precomp.mk
CC=gcc
CFLAGS=-R $(ORACLE_HOME)/lib
yourfile: yourfile.o $(CC) $(CFLAGS) -o yourfile yourfile.o -L$(LIBHOME) $(PROLDLIBS) yourfile.c: yourfile.pc proc iname=yourfile.pc yourfile.o: yourfile.c yourfile.h $(CC) -c yourfile.c
cheers
-Steve
-- Steve Sabljak - RMIT - 3rd Year Computer Science e-mail: sabljak_at_cs.rmit.edu.au ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Received on Sat Mar 21 1998 - 00:00:00 CST