[fpc-pascal]Graphics cards, VGALIB
Olle Raab
olle.r at automagika.se
Fri Sep 3 16:01:45 CEST 2004
04-09-03 15.27, skrev Marco van de Voort följande:
>> On 3 sep 2004, at 14:33, Olle Raab wrote:
>
>>>> this for legacy *nix compatibility using an environment variable).
>>>
>>> Can it help by changing the link order ? Or it is not possible wiht a 2
>>> level ns.. ?
>>
>> Hmm, yes, that's probably it. The two-level namespace is the reason
>> that the order of the libraries and objects on the command line matters
>> under Darwin... We'd have to introduce some compiler switches to
>> influence the order in which the compiler passes the objects and
>> libraries to the linker then though.
>
> We need this afaik for gtk2 too.
>
> I was thinking about a simple global file with libnames and weights, with
> a possibility to override on the commandline.
>
> Simple, generic, and configurable.
Macpas apps also has 2 'main', so the link order matters. I have hardcoded
it so it always is correct.
Both Metrowerks and Think Pascal also has the ability to control link order,
by drag and drop in a list...
Olle
More information about the fpc-pascal
mailing list