Max Vlasov wrote:
On Sun, Jun 26, 2011 at 12:33 AM, Mark Morgan Lloyd
<[email protected]> wrote:
Max Vlasov wrote:
Hi,

I found that Lazarus does a great job when one uses the same lpi/lpk
on different platforms. I currently have one question. If a path for
example to some library folder is absolute, I get obvious
non-existence error
The third possibility is to keep your directory structure the same on all
platforms, e.g. Lazarus in /usr/local/share/lazarus and your sources in
/usr/local/src. If you treat a Linux system as your master, and are fairly
careful about not copying stuff back from Windows unless really necessary,
you won't "pollute" paths with things like drive letters.


Mark, I agree and always try to do this way, I just mentioned word
"library", but I should have probably tell more. I sometimes link
against c-originated libraries, and adding for example {$linklib gcc}
leads absolutely different things in paths option on two platforms.
Even if I manage to exclude drive letters, the expanded path from the
relative one (I should choose for linking on linux) won't probably
exist on windows.

Does Windows still support commands like "subst" and "join"? Alternatively I believe that it does now have an equivalent of symlinks for directories.

As somebody else points out though, perhaps fpc.cfg is the best place for this sort of thing since it's not likely to be moved between systems (i.e. won't be kept in your local SVN repository or whatever).

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to