Results 1 to 2 of 2

Thread: Link errors when adding libGlacier2ObjC.a,libIceObjC.a

  1. #1
    ren-wei is offline Registered User
    Name: wei ren
    Organization: Hainan Airline
    Project: support external system connect ticketsalesystem
    Join Date
    Jun 2010
    Posts
    21

    Link errors when adding libGlacier2ObjC.a,libIceObjC.a

    hello, we want to use Ice Touch on iPhone client. We installed it , compiled .ice files successfully. Now we should add libGlacier2ObjC.a,libIceObjC.a and some .dylib files into projects. But some errors like below occured when I build. Can anyone know and help me ? Thanks~
    "std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()", referenced from:
    IceUtilInternal:fstream:fstream()in libIceObjC.a(FileUtil.o)

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Can you tell us which Xcode version you're using?

    If you are using Xcode 3.2.3, you don't need to explicitly set the static archives libIceObjC and libGlacier2ObjC in the linker flags. Xcode should take care of adding those 2 static libraries and other required libraries (C++ library, ssl, etc) to the linker flags if you correctly set the the "Additional SDKs" property in your Xcode project settings. It should be set to /Developer/SDKs/IceTouch-1.1/$(PLATFORM_NAME).sdk (assuming you installed IceTouch from the installer). .

    This is also documented in paragraph 8 of the IceTouch release notes. I also recommend checking out the settings of the iPhone demo projects for some working project settings.

    Let us know if this still doesn't fix your issue!

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Link errors in linux
    By OrNot in forum Help Center
    Replies: 12
    Last Post: 05-30-2007, 06:46 AM
  2. link errors
    By dthompson in forum Help Center
    Replies: 1
    Last Post: 05-24-2006, 04:57 PM
  3. Link error when adding MFC header in dll project
    By emoly in forum Help Center
    Replies: 7
    Last Post: 09-12-2005, 07:49 AM
  4. Link errors
    By annekat in forum Help Center
    Replies: 4
    Last Post: 07-06-2004, 12:25 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •