iphone compilation problems

I seem to be having problems where it is trying to build actual programs that run. The latest being check_adler_check_adler of the downloadertools directory I really don’t need those to build for iphone os or simulator. Is there a libraries only option?

For some reason it will build using iphoneos but not for iphonesimulator. This is the latest error.

env MACOSX_DEPLOYMENT_TARGET=10.6 PATH="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -fpascal-strings -fasm-blocks -miphoneos-version-min=4.0  -o Opt3-OSX-iPhoneSimulator/check_adler Opt3-OSX-iPhoneSimulator/check_adler_check_adler.o    -L../downloader/Opt3-OSX-iPhoneSimulator -L../express/Opt3-OSX-iPhoneSimulator -L../pandabase/Opt3-OSX-iPhoneSimulator -L/Users/gwatkins/iPhoneSimulator.platform/panda3d/lib -L/Users/gwatkins/iPhoneSimulator.platform/panda3d/lib -ldownloader -lexpress -lexpress -lpandabase -lpandabase -linterrogatedb -lprc -ldconfig -ldtoolutil -ldtoolbase -lpystub -lprc -lz  -framework Foundation
Undefined symbols:
  ".objc_class_name_NSAutoreleasePool", referenced from:
      literal-pointer@__OBJC@__cls_refs@NSAutoreleasePool in libdtoolutil.a(dtoolutil_filename_assist.o)
ld: symbol(s) not found