Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Compiling Pro*C output with GCC

Re: Compiling Pro*C output with GCC

From: Steve Sabljak <sabljak_at_cs.rmit.edu.au>
Date: 1998/03/21
Message-ID: <6ev9qu$8ic$1@goanna.cs.rmit.edu.au>#1/1

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

--END Makefile

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US