On Wed, Jan 27, 2010 at 7:41 AM, Kelvin Chan <kelvinc at positronics.com> wrote: > Hi guys, > > I'm new to pjsip and run into a weird linking issue. > > I checkout the 1.5.5 and latest from svn, build them using "./configure && > make dep && make". the whole build goes smoothly. I can even run the sample > apps. > > However, gcc complains "undefined reference to `pj_init'" during linking my > "hello world". I then copied playsine.c from sample apps and change my > TARGET to playsine.c. It gives me the same error. > [snip] > > $(TARGET): $(TARGET).o > ? ?$(CC) $(LDFLAGS) -o $@ $< > What if you put $(LDFLAGS) after $< -benny