WinChain, Windows, and Symlinks

Discussion in 'iOS Development' started by marvo, Jan 20, 2008.

  1. marvo

    marvo New Member

    Joined:
    Oct 25, 2007
    Messages:
    77
    Likes Received:
    0
    ok so im a windows user, i dont really know what symlinks are.. (like shortcuts from what i understand?) well anyway i can compile apps with winchain thats not a problem, but now i want to start using sdl. so i built sdl and placed the libs in the right place (still not the problem). so now i want to build VirtualBall's port of the sand game because it seems simple enough.

    in this thread: http://www.ifans.com/forums/showthread.php?t=12329&page=5 , jungzandvliet gets help from Virtualball compiling the sand game. he gets to a point where he gets this error:

    Code:
    Cygwin@zandvliet /home/sand
    $ arm-apple-darwin-gcc -fsigned-char ./main.cpp -o sdlsand -I/usr/local/arm-app
    le-darwin/include/SDL -framework CoreFoundation -framework UIKit -framework Cor
    eGraphics -framework CoreSurface -framework LayerKit -framework GraphicsService
    s -L/usr/local/arm-apple-darwin/lib -lSDL -lSDLmain -lobjc -lstdc++
    /usr/local/bin/arm-apple-darwin-ld: Undefined symbols:
    __Unwind_SjLj_Resume
    __Unwind_GetDataRelBase
    __Unwind_GetIP
    __Unwind_GetLanguageSpecificData
    __Unwind_GetRegionStart
    __Unwind_GetTextRelBase
    __Unwind_SetGR
    __Unwind_SetIP
    __Unwind_SjLj_RaiseException
    __Unwind_SjLj_Resume_or_Rethrow
    __Unwind_DeleteException
    collect2: ld returned 1 exit status
    this is where im at btw

    then SkylarEC says:

    this is where im confused. if someone could help me out and tell me where in the filesystem i should be looking for these 'symlinks' (shortcuts?) and how to fix them i would appreciate it A LOT.
  2. pinhassi

    pinhassi New Member

    Joined:
    Jan 11, 2009
    Messages:
    6
    Likes Received:
    0
    The problem is with linking libgcc_eh.a
    To solve this, use:
    LIBFLAGS += -L"/usr/local/arm-apple-darwin/lib"
    instead of:
    LIBFLAGS += -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib

    I created the toolchain env using this tutorial:
    http://ansani.it/2008/08/12/build-the-toolchain-for-iphone-20x-on-macosx-105x/

    I attached a working application (an example I found on the net) and a makefile that compiles it successfully.


    Goodluck,
    Asaf Pinhassi

    Attached Files:

  3. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    This thread is a year old, i think he moved on.

Share This Page