Results 1 to 10 of 15

Thread: Linking issues with XCode + FPC for iPhone

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [FIXED] Linking issues with XCode + FPC for iPhone

    Hi!
    I'm trying to port my game engine to run on iPhone, so I used the FPC OpenGL template as startup point.
    Now in PascalLibrary.pas it says 'Add all your Pascal units to 'uses' clause..."
    My game engine contains about 70 different units, do I need to add them all there?

    I can compile with no problem the empty template (with the spinning fpc logo)
    Is it necessary to have -mmacpas mode defined?
    I removed this in the settings and it still compiles and runs ok. I ask this because my engine was originally written in Delphi/Windows, and later ported to FPC and uses mode Delphi switches everywhere.

    Now the other problem, just adding for example my unit TERRA_Utils to PascalLibrary causes lots of linking errors

    _FINALIZES_TERRA_GL, referenced from.
    INITFINAL in PascalLibrary.o
    _FINALIZES_TERRA_OS, referenced from
    INITFINAL in PascalLibrary.o
    _FINALIZES_TERRA_LOG, referenced from
    INITFINAL in PascalLibrary.o
    _THREADVARLIST_TERRA_APPLICATION, referenced from
    FPC_THREADVARTALES in PascalLibrary.o

    and lots of similar errors.
    I already have the -Wl, -no_order_inits in the project settings, what could be the problem?
    (I'm using FPC 2.5.1)
    Last edited by Relfos; 03-03-2011 at 04:59 PM.

Bookmarks

Posting Permissions

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