Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-01

MacOSX limited linker path length

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

I run into some strange linker errors. Shorten the paths fixed the problem.

The application has the following linker options:
-k-framework -kcarbon -k-framework -kAGL
And the output file was
-o/Users/Username/pascal/carbon/agl/carboncustomcontrol.app/Contents/MacOS/ TestProgram

Granted, it is not short, but at least half of it is needed anyway. I have now to work with symbolic links if I want to add only one other framework.

What should I write into the wiki?
Don't use long paths under MacOSX as the linker will cut too long parameter lists.

Or is it a fpc problem?
How can I find out?
How can I see, how fpc calls the linker under MacOSX?

Mattias

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote
How can I see, how fpc calls the linker under MacOSX?

Compile with -s and check ppas.sh and link.res. There are still various 255 char limits in fpc regarding command line arguments passed to the assembler and linker.

Jonas