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)
Bookmarks