> I posted earlier this year a build script that builds for both the phone and the simulator. Don't have a link, but its out there. I assume you are talking about this one? http://article.gmane.org/gmane.comp.voip.pjsip/9138/match=iphone+build I have a very similar script :) The interesting bits are: 1. I am surprised you got it working with gcc 4.2. When I use 4.2 I get an error telling me that "-arch" is not supported. Which is why I am still using 4.0. (Wondering if it needs to be -march for 4.2) 2. I am surprised you've got export CFLAGS="${CFLAGS} -I$SDKROOT/usr/include/gcc/darwin/4.2" while I've added export CFLAGS="${CFLAGS} -I/Developer/SDKs/MacOSX10.5.sdk/usr/include" export LDFLAGS="${LDFLAGS} -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib" Anyway I've got it compiling for both Simulator and iPhone SDK 3.1.2 now. cheers -- Torsten