regibb

September 10th, 2012, 03:18 PM

CXX = gcc

CCFLAGS = -g -Wall

LIB = /home/regibb/lib/lbse1

OBJS = xbsstep.o

LIBOBJS = bsstep.o rzextr.o pzextr.o odeint.o mmid.o free_vector.o nrerror.o vector.o matrix.o free_matrix.o

.c.o :

${CXX} ${CCFLAGS} -c $<

orbitale1 : ${OBJS} ${LIB}

${CXX} ${CCFLAGS} -o $@ ${OBJS} ${LIB}

lbse1 : ${LIBOBJS}

ar r ${LIB} $?

================================================== ==========================

regibb@ubuntu:~/source/ode/orbitale1$ make orbitale1

gcc -g -Wall -o orbitale1 xbsstep.o /home/regibb/lib/lbse1

xbsstep.o: In function `drag':

/home/regibb/source/ode/orbitale1/xbsstep.c:29: undefined reference to `exp'

xbsstep.o: In function `main':

/home/regibb/source/ode/orbitale1/xbsstep.c:97: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:112: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:113: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:114: undefined reference to `cos'

/home/regibb/source/ode/orbitale1/xbsstep.c:116: undefined reference to `sin'

/home/regibb/source/ode/orbitale1/xbsstep.c:117: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:122: undefined reference to `sqrt'

/home/regibb/source/ode/orbitale1/xbsstep.c:125: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:126: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:127: undefined reference to `cos'

/home/regibb/source/ode/orbitale1/xbsstep.c:128: undefined reference to `sin'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

xbsstep.o:/home/regibb/source/ode/orbitale1/xbsstep.c:130: more undefined references to `pow' follow

xbsstep.o: In function `main':

/home/regibb/source/ode/orbitale1/xbsstep.c:135: undefined reference to `sqrt'

/home/regibb/source/ode/orbitale1/xbsstep.c:136: undefined reference to `fmod'

/home/regibb/source/ode/orbitale1/xbsstep.c:141: undefined reference to `sqrt'

/home/regibb/lib/lbse1(bsstep.o): In function `bsstep':

/home/regibb/source/ode/orbitale1/bsstep.c:64: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/bsstep.c:91: undefined reference to `pow'

collect2: ld returned 1 exit status

CCFLAGS = -g -Wall

LIB = /home/regibb/lib/lbse1

OBJS = xbsstep.o

LIBOBJS = bsstep.o rzextr.o pzextr.o odeint.o mmid.o free_vector.o nrerror.o vector.o matrix.o free_matrix.o

.c.o :

${CXX} ${CCFLAGS} -c $<

orbitale1 : ${OBJS} ${LIB}

${CXX} ${CCFLAGS} -o $@ ${OBJS} ${LIB}

lbse1 : ${LIBOBJS}

ar r ${LIB} $?

================================================== ==========================

regibb@ubuntu:~/source/ode/orbitale1$ make orbitale1

gcc -g -Wall -o orbitale1 xbsstep.o /home/regibb/lib/lbse1

xbsstep.o: In function `drag':

/home/regibb/source/ode/orbitale1/xbsstep.c:29: undefined reference to `exp'

xbsstep.o: In function `main':

/home/regibb/source/ode/orbitale1/xbsstep.c:97: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:112: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:113: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:114: undefined reference to `cos'

/home/regibb/source/ode/orbitale1/xbsstep.c:116: undefined reference to `sin'

/home/regibb/source/ode/orbitale1/xbsstep.c:117: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:122: undefined reference to `sqrt'

/home/regibb/source/ode/orbitale1/xbsstep.c:125: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:126: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:127: undefined reference to `cos'

/home/regibb/source/ode/orbitale1/xbsstep.c:128: undefined reference to `sin'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/xbsstep.c:129: undefined reference to `pow'

xbsstep.o:/home/regibb/source/ode/orbitale1/xbsstep.c:130: more undefined references to `pow' follow

xbsstep.o: In function `main':

/home/regibb/source/ode/orbitale1/xbsstep.c:135: undefined reference to `sqrt'

/home/regibb/source/ode/orbitale1/xbsstep.c:136: undefined reference to `fmod'

/home/regibb/source/ode/orbitale1/xbsstep.c:141: undefined reference to `sqrt'

/home/regibb/lib/lbse1(bsstep.o): In function `bsstep':

/home/regibb/source/ode/orbitale1/bsstep.c:64: undefined reference to `pow'

/home/regibb/source/ode/orbitale1/bsstep.c:91: undefined reference to `pow'

collect2: ld returned 1 exit status