[Lazarus] Indy with Lazarus, what is the latest state?
Sven Barth
pascaldragon at googlemail.com
Wed Oct 27 18:43:45 CEST 2010
On 27.10.2010 13:47, Bo Berglund wrote:
> On Wed, 27 Oct 2010 11:58:37 +0200, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>
>> Keep in mind that a samba share is a case insensitive file system,
>> while the compiler and the IDE under Linux work case sensitive. Maybe
>> you want to rename all files lowercase.
>>
>
> Not really a good idea because inside the Indy files are uses
> statemants like this example:
>
> uses
> Classes,
> IdGlobal,
> IdRawBase,
> IdRawClient,
> IdStackConsts,
> IdBaseComponent;
>
> As you can see these are capitalized and if the corresponding file
> name is lower case only then it will not be found...
No, this is wrong.
FPC searches for
1) the unit as written in the "uses"
2) the unit in all lowercase
3) the unit in all uppercase
(see here at the lower half:
http://www.freepascal.org/docs-html/user/usersu7.html#x21-280003.1.2 )
So the unit will be found if its file is named in lower case.
Note: The casing of "unit UnitName;" inside the file doesn't matter (it
doesn't have to match the filename in casing), but it is used by Lazarus
when autocompleting a unitname in the uses-clause.
Regards,
Sven
More information about the Lazarus
mailing list