[pjsip] Makefile for pjsua !

Damien Herraud d.herraud at gmail.com
Fri Apr 4 11:43:18 EDT 2008

Hi benny,

I modified the rules in the submitted Makefile by these ones :

# If your application is in a file named myapp.cpp or myapp.c
# this is the line you will need to build the binary.
all: sipua

sipua: pjsua_app.o main.o
   $(CC) -o $@ $^ $(LDFLAGS)

pjsua_app.o: pjsua_app.c
   $(CC) -o $@ -c $< $(CPPFLAGS) $(LDFLAGS) $(LDLIBS)

main.o: main.c
   $(CC) -o $@ -c $< $(CPPFLAGS) $(LDFLAGS) $(LDLIBS)

   rm -f *.o sipua

What I get when trying to compile is :

pjsua_app.c:(.text+0x6c23): undefined reference to
pjsua_app.c:(.text+0x6c8e): undefined reference to `pj_str'
pjsua_app.c:(.text+0x6cb9): undefined reference to
pjsua_app.c:(.text+0x6ccb): undefined reference to `pj_list_insert_before'
pjsua_app.o: In function `app_main':
pjsua_app.c:(.text+0x6ce8): undefined reference to `pjsua_start'
pjsua_app.o: In function `on_typing':
pjsua_app.c:(.text+0x14d): undefined reference to `pj_log_3'
collect2: ld returned 1 exit status
make: *** [sipua] Error 1

And many more undefined references !
Again, I apologize for my poor knowledges in Makefiles !


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080404/44f9c2f0/attachment.html>

More information about the pjsip mailing list