[fpc-pascal] Excessive Recompiling: UPPER case files.

2005-05-22 Thread L505
Hi,

Problem:
On the FPC community boards a while ago, I posted some problems with 
recompiling issues.
When I was using the Synapse library, for some reason 10,000 lines of code were 
being recompiled!

Solution:
The synapse files were in CAPS LOCK.. i.e. SYNASSL.PAS, SYNABLOCK.PAS
When I renamed the files to lower case, everything does not recompile now. No 
more 10,000 lines compilation!

I thought that the uppercase was only an issue with eariler compilers? (I 
haven't researched this.. just that
lazarus told me "would you like to rename the file to lowercase for 1.0 
compatability?".

The compiler I was using was 1.9.6

Are caps lock files supposed to be bad on purpose, for compilers above 1.9.6 or 
would this have bin a minor
bug?
I'll also try with 2.0.0 soon.

This is on a Linux machine. But I think the issue also exists on a Windows 
machine too, from what I tried
briefly.

Regards,
Lars

p.s. So it appears that FPC does not like it when you YELL AT it. I can 
understand, myself.




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SizeOf(File) <> SizeOf(FileRec)

2005-05-22 Thread Søren Ager

Søren Ager wrote:

I can't compile sockets.pas as SizeOf(File) <> SizeOf(FileRec). 


Turns out my problem was that I had the rtl directories in my unit 
paths. After I copied socket.pas and so32dll.pas to a new directory I am 
now able to compile them (after I added the missing pieces of code).



Take care,
  Søren

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Excessive Recompiling: UPPER case files.

2005-05-22 Thread Peter Vreman

At 10:06 22-5-2005, you wrote:

Hi,

Problem:
On the FPC community boards a while ago, I posted some problems with 
recompiling issues.
When I was using the Synapse library, for some reason 10,000 lines of code 
were being recompiled!


Solution:
The synapse files were in CAPS LOCK.. i.e. SYNASSL.PAS, SYNABLOCK.PAS
When I renamed the files to lower case, everything does not recompile now. 
No more 10,000 lines compilation!


I thought that the uppercase was only an issue with eariler compilers? (I 
haven't researched this.. just that
lazarus told me "would you like to rename the file to lowercase for 1.0 
compatability?".


If the compiler needs to search for a file it will use the following order:

1. OriginalCase
2. lowercase
3. UPPERCASE


Peter


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Excessive Recompiling: UPPER case files.

2005-05-22 Thread Lukas Gebauer
> Solution:
> The synapse files were in CAPS LOCK.. i.e. SYNASSL.PAS, SYNABLOCK.PAS When
> I renamed the files to lower case, everything does not recompile now. No
> more 10,000 lines compilation!

??? All Synapse source files are distributed in lowecase. How you got 
filenames in uppercase?


--
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP 
Library



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] SizeOf(File) <> SizeOf(FileRec)

2005-05-22 Thread Tomas Hajny
Date sent:  Sun, 22 May 2005 09:34:38 +0200
From:   Sřren Ager <[EMAIL PROTECTED]>
To: FPC-Pascal users discussions 

Subject:Re: [fpc-pascal] SizeOf(File)  <> SizeOf(FileRec)
Send reply to:  FPC-Pascal users discussions 





Hi Soren

Glad to see you here!

> > I can't compile sockets.pas as SizeOf(File) <> SizeOf(FileRec).
>
> Turns out my problem was that I had the rtl directories in my unit
> paths. After I copied socket.pas and so32dll.pas to a new directory I
> am now able to compile them (after I added the missing pieces of
> code).

Are you willing to contribute your changes, so we could add unit
sockets to supported units for the OS/2 target? That should open
existing considerable codebase using this unit (primarily written for
Unix platforms) to OS/2.

Regards

Tomas

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Excessive Recompiling: UPPER case files.

2005-05-22 Thread L505
Oops I didn't mean it was Synapse's fault, Lukas. No it was another problem - 
the files got converted to upper
case on my computers, some how.. during a transfer from one PC to the other.

What I think caused the problem was when I was using CoLinux. When you use a 
"Cofs device" on CoLinux, some of
the files get transfered to uppercase when you copy over from windows to Linux.

So in fact, any upper case PAS file would casue problems, nothing to do with 
Synapse directly, gladly.

Lars


- Original Message -
From: "Lukas Gebauer" <[EMAIL PROTECTED]>
To: "FPC-Pascal users discussions" 
Sent: Sunday, May 22, 2005 3:37 AM
Subject: Re: [fpc-pascal] Excessive Recompiling: UPPER case files.


| > Solution:
| > The synapse files were in CAPS LOCK.. i.e. SYNASSL.PAS, SYNABLOCK.PAS When
| > I renamed the files to lower case, everything does not recompile now. No
| > more 10,000 lines compilation!
|
| ??? All Synapse source files are distributed in lowecase. How you got
| filenames in uppercase?
|
|
| --
| Lukas Gebauer.
|
| E-mail: [EMAIL PROTECTED]
| WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP
| Library
|
|
|
| ___
| fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
| http://lists.freepascal.org/mailman/listinfo/fpc-pascal


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Excessive Recompiling: UPPER case files.

2005-05-22 Thread L505

| If the compiler needs to search for a file it will use the following order:
|
| 1. OriginalCase
| 2. lowercase
| 3. UPPERCASE
|
|
| Peter

Hi Peter..

The PPU files didn't seem to be generated with an upper case file.. so every 
time I compiled an application
with upper case units, no PPU files were generated for those files only. 
However, in the uses clause, I had
some lower case units. These files were generated into PPU.

So with a mixture of lower and upper case files, only the lower generated PPU. 
Any ideas?

Lars


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal