Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Compiling .c files using 'gcc' output of PROC*C program
Hi Sachin.
You miss the oracle libs.
Use the option -L in the command line of gcc to indicate the library path, and the the -l to indicate the librarys.
In $ORACLE_HOME/precomp/demo/proc you can see an makefile example.
build: $(OBJS)
$(CC) -o $(EXE) $(OBJS) -L$(LIBHOME) $(PROLDLIBS)
cppbuild:
$(PROC) $(PROCPPFLAGS) iname=$(EXE) $(CCP) -c $(INCLUDE) $(EXE).c $(CCP) -o $(EXE) $(OBJS) -L$(LIBHOME) $(PROLDLIBS)
If you need more detail, let me know.
HTH Carlos.
> ----------
> De: sachin borikar[SMTP:sachin_borikar_at_yahoo.com]
> Responder a: ORACLE-L_at_fatcity.com
> Enviado el: Lunes 29 de Mayo de 2000 15:08
> Para: Multiple recipients of list ORACLE-L
> Asunto: Compiling .c files using 'gcc' output of PROC*C program
>
> Hi,
>
> I have compiled PROC*C file using PROC, Which has
> generated .c file.
> For e.g I have daemon.pc which i compiled using PROC
> Now what I have is daemon.c file, which i am trying to
> compile with GCC but the error i am getting is:
>
> Undefined first reference
> symbol in file
> sqlglm /var/tmp/ccDqayk11.o
> sqlcxt /var/tmp/ccDqayk11.o
> ld: fatal: Symblo Referencing errors. No output
> written to a.out
>
> Well I am not a programmer I am using PROC*C for the
> first time.
> Please advice me.
>
> Thanks & Regards
>
> Sachin
>
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/
> --
> Author: sachin borikar
> INET: sachin_borikar_at_yahoo.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Mon May 29 2000 - 12:19:42 CDT
![]() |
![]() |