Re: FreePascal unit in Cocoa project - debugger problems
Re: FreePascal unit in Cocoa project - debugger problems
- Subject: Re: FreePascal unit in Cocoa project - debugger problems
- From: Jonas Maebe <email@hidden>
- Date: Thu, 9 Jul 2009 09:33:43 +0200
On 09 Jul 2009, at 07:30, Alexander Bokovikov wrote:
On Wed, 8 Jul 2009 11:46:37, Jonas Maebe wrote:
Now I have the only additional question - How to deal with nultiple
FPC units? Should I explicitly include all used fpc units into my
XCode project?
Yes.
Working with Delphi I never though about that. Is it FPC or XCode
problem, that it is not enough to assign the units search path?
It is due to the way Xcode works. FPC automatically finds and compiles
all units that are in the search paths. The problem is making Xcode
aware of the compiled object files. The only way I've found that
consistently works is by having FPC compile everything to assembler
files, and then letting Xcode assemble those into object files. To do
so, all source files have to be added to the target, so Xcode applies
the "compile FPC-generated assembler files into object files" for
every unit of the program. The resulting object files are then added
by Xcode into its build system and properly linked in.
May be it is worth of doing to place appropriate feature request?
You can file a feature request at https://bugreporter.apple.com for a
way for compilers to communicate to Xcode which object files should be
linked into the final binary.
Similarly, if you remove a unit from your program's
uses clauses, also remove it from the target's list of
units (you don't have to remove it from your project).
How to open this "target's list of units"? I don't see appropriate
menu item.
Click on the target's disclosure triangle, and then on the "Compile
Sources" phase disclosure triangle.
Jonas
_______________________________________________
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