Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiling for ddd

Status
Not open for further replies.

patlv23

Programmer
May 23, 2002
31
0
0
PH
i've been trying to compile my api for database access. we're supposed to test it with ddd. i'm using mysql 3.23.49 and gcc 2.95.3 on solaris 2.6. this is what is displayed after make:

*****************************************************

139 pgsun02[cwong] > make -f Makefile_DDD clean
/bin/rm -f *.o mylib/libRdb.a

140 pgsun02[cwong] > make -f Makefile_DDD
gcc -c -g -DDEBUG -lm -lmysqlclient -lz -I../../include -I/opt/OB/include -I/opt/OV/include -I/opt/uimx3.0/include -I/usr/openwin/include -I/export/home1/NMS/NMS_W/incude -I/usr/local/mysql/include -I/usr/local/include RdbCom.c
gcc: -lm: linker input file unused since linking not done
gcc: -lmysqlclient: linker input file unused since linking not done
ar -ruv mylib/libRdb.a RdbCom.o
a - RdbCom.o
ar: creating mylib/libRdb.a
ar: writing mylib/libRdb.a

*****************************************************

this is what the Makefile_DDD looks like:

*****************************************************

CC = gcc
AR = ar

NMS_W = /export/home1/NMS/NMS_W

SRC = RdbCom.c
ALLLIB = mylib/libRdb.a

#<INCLUDE PATH>
INCPATH = -I../../include -I/opt/OB/include -I/opt/OV/include -I/opt/uimx3.0/include -I/usr/openwin/include -I$(NMS_W)/incude -I/usr/local/mysql/include -I/usr/local/include

FLAG = -c -g -DDEBUG -lm -lmysqlclient -lz

# <LIBPATH>
LIBPATH = -L../../lib -L/opt/OB/lib -L/opt/OV/lib -L/opt/uimx3.0/lib -L/usr/local/mysql/lib -L/usr/local/


all::$(ALLLIB)

$(ALLLIB) : $(SRC:.c=.o)
$(AR) -ruv $@ $(SRC:.c=.o)

.c.o :
$(CC) $(FLAG) $(INCPATH) $<

lint :
$(LINT) $(COMMON) $(INCPATH) $(LIBPATH) RdbCom.c

clean :
/bin/rm -f *.o $(ALLLIB)

*****************************************************

would appreciate some input on this. thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top