• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Link errors with iPhone 3.1/2.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Link errors with iPhone 3.1/2.0


  • Subject: Link errors with iPhone 3.1/2.0
  • From: David Dunham <email@hidden>
  • Date: Fri, 25 Sep 2009 12:13:12 -0700

I'm trying to make a device build and am now unable. (I've done it before, but I think project settings got changed.)

I have set both app and libGameHouseFoundationIPhone.a to use the 3.1 SDK but deploy on 2.0. I made sure everything is using GCC 4.2. I made sure that the target, not just the project, settings were correct.

I had been getting a link error on 4 symbols, by being careful with the above I got it down to two.

  "___sync_val_compare_and_swap_4", referenced from:
  "___sync_fetch_and_add_4", referenced from:

Am I missing something?

Here's the transcript (redundant errors removed):

Ld bin/Debug-iphoneos/Marooned.app/Marooned normal armv6
cd /Users/david/GameHouse/ghf/development/maroonediPhone
setenv IPHONEOS_DEPLOYMENT_TARGET 2.0
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/ Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ iPhoneOS3.1.sdk -L/Users/david/GameHouse/ghf/development/ maroonediPhone/bin/Debug-iphoneos -L/Users/david/GameHouse/ghf/ development/maroonediPhone/../extlibs/fmod/fmod-4.26iphone/api/lib -L/ Users/david/GameHouse/ghf/development/maroonediPhone/../extlibs/zlib/ zlib-1.1.3/project/build/Release-iphoneos -L/Users/david/GameHouse/ghf/ development/maroonediPhone/../extlibs/tinyxml/tinyxml-2.5.3/project/ build/Release-iphoneos -L/Users/david/GameHouse/ghf/development/ maroonediPhone/../extlibs/tinyxml/tinyxml-2.5.3/project/build/Release- iphonesimulator -L/Users/david/GameHouse/ghf/development/ maroonediPhone/../extlibs/tinyxml/tinyxml-2.5.3/project/build/release- iphoneuniversal -L/Users/david/GameHouse/ghf/development/ maroonediPhone/../extlibs/zlib/zlib-1.1.3/project/build/Release- iphoneuniversal -L/Users/david/GameHouse/ghf/development/ maroonediPhone/extlibs/pyro-1.1.10/build/release -L/Users/david/ GameHouse/ghf/development/maroonediPhone/../extlibs/pyro/pyro-1.1.10/ lib -F/Users/david/GameHouse/ghf/development/maroonediPhone/bin/Debug- iphoneos -filelist /Users/david/Library/Caches/build/ MaroonediPhone.build/Debug-iphoneos/MaroonediPhone.build/Objects- normal/armv6/Marooned.LinkFileList -mmacosx-version-min=10.5 - lfmodex_iphoneos -miphoneos-version-min=2.0 -framework Foundation - framework UIKit -framework CoreGraphics -framework MediaPlayer - framework OpenGLES /Users/david/GameHouse/ghf/development/ maroonediPhone/engine/build/Debug-iphoneos/ libGameHouseFoundationIPhone.a -framework QuartzCore -framework SystemConfiguration -liPhonetinyxml -liPhonezlib-GHF - lpyro_iphone_univ -o /Users/david/GameHouse/ghf/development/ maroonediPhone/bin/Debug-iphoneos/Marooned.app/Marooned


ld: warning: std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_insert_aux (__gnu_cxx::__normal_iterator<std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)has different visibility (hidden) in /Users/david/GameHouse/ghf/ development/maroonediPhone/extlibs/pyro-1.1.10/build/release/ libpyro_iphone_univ.a(FileManager.o) and (default) in /Users/david/ GameHouse/ghf/development/maroonediPhone/engine/build/Debug-iphoneos/ libGameHouseFoundationIPhone.a(PlatformIPhone.o)
ld: warning: std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)has different visibility (hidden) in /Users/david/GameHouse/ghf/development/ maroonediPhone/extlibs/pyro-1.1.10/build/release/libpyro_iphone_univ.a (BitmapIO.o) and (default) in /Users/david/Library/Caches/build/ MaroonediPhone.build/Debug-iphoneos/MaroonediPhone.build/Objects- normal/armv6/DialogHelp.o
Undefined symbols:
"___sync_val_compare_and_swap_4", referenced from:
boost::detail::atomic_conditional_increment(int*) in libGameHouseFoundationIPhone.a(LabelInput.o)
boost::detail::atomic_conditional_increment(int*) in libGameHouseFoundationIPhone.a(Sprite.o)
boost::detail::atomic_conditional_increment(int*) in libGameHouseFoundationIPhone.a(Renderer.o)
"___sync_fetch_and_add_4", referenced from:
boost::detail::atomic_increment(int*) in DialogHelp.o
boost::detail::atomic_decrement(int*) in DialogHelp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status


David Dunham   www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Edit-in-Scope subtleties
  • Next by Date: Re: Correct way to tell if a path is to a .bundle?
  • Previous by thread: Re: Edit-in-Scope subtleties
  • Next by thread: Re: Correct way to tell if a path is to a .bundle?
  • Index(es):
    • Date
    • Thread