Maybe something more like: PKGCONF = `pkg-config --cflags --libs libpjproject` OBJECTS = pjsua_app.o main.o CC = gcc all: sipua sipua: ${OBJECTS} sipua.o $(CC) ${OBJECTS} sipua.o -o sipua ${PKGCONF} .c.o: ${CC} -c $< -o $@ ${PKGCONF} clean: ${RM} *.o ${RM} sipua On Apr 7, 2013, at 9:52 PM, Sakharam Thorat <sakharam.thorat at einfochips.com> wrote: > > > Hi , > > I am trying to run pjsua_app.c > > My make file is > all: sipua > > sipua: pjsua_app.o main.o > $(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS) > > pjsua_app.o: pjsua_app.c > $(CC) -o $@ -c $< $(CPPFLAGS) $(LDFLAGS) $(LDLIBS) > > main.o: main.c > $(CC) -o $@ -c $< $(CPPFLAGS) $(LDFLAGS) $(LDLIBS) > > clean: > rm -f *.o sipua > > > > After execution above make i got following error > > main.o: In function `main': > main.c:(.text+0x9e): undefined reference to `pj_run_app' > collect2: ld returned 1 exit status > make: *** [sipua] Error 1 > > > can you please help me to sort out above. > > > Best Regards, > Sakharam Thorat. > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130408/febfc601/attachment-0001.html>