Re: Make File!
From: Peaches <fsgchi_at_wwa.com>
Date: 1998/01/15
Message-ID: <01bd21db$3d8ac160$f23ef1cf_at_ww.wwa.com>#1/1
Lau Anna <ylau1_at_umbc.edu> wrote in article <69jlgm$am3$6_at_news.umbc.edu>...
> HI, sorry to bother you but I am desperate to finish up my project. I
have written a
> program in PRO*C but I have trouble in compiling it. I am using a make
file
> provided
> by the professor who won't be back until the 20th (and I need to finish
up the
> project before the 21st to graduate).
>
> I would appreciate any help you can give me or any advice on whom I can
ask. Thanks!
>
> ANNA
>
> Following is the make file, my program name is main.pc
>
> #Sample simple Makefile for the Pro*C Precompiler:
> # precompiling, compliling, and linking using the gcc
compiler.
> #
> #
> #ORACLE_HOME=/u01/app/oracle/product/7.3.2
> #
> ORA_INC=-I$(ORACLE_HOME)/precomp/public
> ORA_LIBDIR=-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib
-L$(ORACLE_HOME)/precomp/lib \
> -L$(ORACLE_HOME)/sqlplus/lib -L$(ORACLE_HOME)/otrace/lib
> ORA_LIBS= -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric
-lsqlnet \
> -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnls
> rtl3 -lc3v6 -lcore3 \
> -lnlsrtl3 -lcore3 -lnlsrtl3
> #
> #
> PROC=proc
> PROCFLAGS=dbms=v6_char
> #
> CC=gcc
> CFLAGS= $(ORA_INC) -I.
> #
> #
> #
> PROGS= main
>
> all: $(PROGS)
>
> main : main.pc
> $(PROC) $(PROCFLAGS) iname=main.pc
> $(CC) $(CFLAGS) -c main.c
> $(CC) $(CFLAGS) -o main main.o $(ORA_LIBDIR) $(O
> RA_LIBS) -lm
>
> clean:
> rm *.o main.c $(PROGS)
>
>
>
Received on Thu Jan 15 1998 - 00:00:00 CET
Date: 1998/01/15
Message-ID: <01bd21db$3d8ac160$f23ef1cf_at_ww.wwa.com>#1/1
Can you please be more specific about your problem.
Please include any error messages that are returned when you try to compile.
A common problem with make is having spaces instead of tabs at the beginning of lines. There are spaces in the included Makefile but that may be due to the cut and paste into your news software.
To check for spaces in your makefile type:
cat -t makefile
If there are tabs, they will show up as ^I otherwise, you have spaces. -good luck.
Lau Anna <ylau1_at_umbc.edu> wrote in article <69jlgm$am3$6_at_news.umbc.edu>...
> HI, sorry to bother you but I am desperate to finish up my project. I
have written a
> program in PRO*C but I have trouble in compiling it. I am using a make
file
> provided
> by the professor who won't be back until the 20th (and I need to finish
up the
> project before the 21st to graduate).
>
> I would appreciate any help you can give me or any advice on whom I can
ask. Thanks!
>
> ANNA
>
> Following is the make file, my program name is main.pc
>
> #Sample simple Makefile for the Pro*C Precompiler:
> # precompiling, compliling, and linking using the gcc
compiler.
> #
> #
> #ORACLE_HOME=/u01/app/oracle/product/7.3.2
> #
> ORA_INC=-I$(ORACLE_HOME)/precomp/public
> ORA_LIBDIR=-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib
-L$(ORACLE_HOME)/precomp/lib \
> -L$(ORACLE_HOME)/sqlplus/lib -L$(ORACLE_HOME)/otrace/lib
> ORA_LIBS= -lxa -lsql -lsqlnet -lncr -lsqlnet -lclient -lcommon -lgeneric
-lsqlnet \
> -lncr -lsqlnet -lclient -lcommon -lgeneric -lepc -lnls
> rtl3 -lc3v6 -lcore3 \
> -lnlsrtl3 -lcore3 -lnlsrtl3
> #
> #
> PROC=proc
> PROCFLAGS=dbms=v6_char
> #
> CC=gcc
> CFLAGS= $(ORA_INC) -I.
> #
> #
> #
> PROGS= main
>
> all: $(PROGS)
>
> main : main.pc
> $(PROC) $(PROCFLAGS) iname=main.pc
> $(CC) $(CFLAGS) -c main.c
> $(CC) $(CFLAGS) -o main main.o $(ORA_LIBDIR) $(O
> RA_LIBS) -lm
>
> clean:
> rm *.o main.c $(PROGS)
>
>
>
Received on Thu Jan 15 1998 - 00:00:00 CET