On Thu, 22 Feb 2018 12:48:21 +0100 (CET)
Michael Van Canneyt wrote:
>[...]
> home:~/source/testsub> fpc a.pp
> unit1.pas(1,9) Error: Illegal unit name: foo (expecting FOO)
> unit1.pas(7,1) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
>
> Where
>
> a.pp:
>
On Thu, 22 Feb 2018 17:04:25 +0100
Mattias Gaertner wrote:
> On Thu, 22 Feb 2018 10:41:29 -0500
> wkitt...@windstream.net wrote:
>
> > On 02/22/2018 09:49 AM, Michael Van Canneyt wrote:
> > > On Thu, 22 Feb 2018, Mattias Gaertner wrote:
> > >> On Thu, 22 Feb 2018 12:48:21 +0100 (CET)
> > >
On Thu, 22 Feb 2018 10:41:29 -0500
wkitt...@windstream.net wrote:
> On 02/22/2018 09:49 AM, Michael Van Canneyt wrote:
> > On Thu, 22 Feb 2018, Mattias Gaertner wrote:
> >> On Thu, 22 Feb 2018 12:48:21 +0100 (CET)
> >> Michael Van Canneyt wrote:
> >>> First of all, normally it won't work eith
On 02/22/2018 09:49 AM, Michael Van Canneyt wrote:
On Thu, 22 Feb 2018, Mattias Gaertner wrote:
On Thu, 22 Feb 2018 12:48:21 +0100 (CET)
Michael Van Canneyt wrote:
First of all, normally it won't work either way, because you must use
"unit foo;" and "unit bar;" in the files. >>
No, I can use
On Thu, 22 Feb 2018, Mattias Gaertner wrote:
On Thu, 22 Feb 2018 12:48:21 +0100 (CET)
Michael Van Canneyt wrote:
[...]
First of all, normally it won't work either way, because you must use "unit foo;" and "unit bar;" in the files.
No, I can use normal units. This works here:
Strange. I
On Thu, 22 Feb 2018 12:48:21 +0100 (CET)
Michael Van Canneyt wrote:
>[...]
> First of all, normally it won't work either way, because you must use "unit
> foo;" and "unit bar;" in the files.
No, I can use normal units. This works here:
---test1.pas---
uses foo in 'unit1.pas', unit1, bar in 's
On Thu, 22 Feb 2018, Mattias Gaertner wrote:
Hi,
FPC allows to use two different units with the same name:
uses foo in 'unit1.pas', bar in 'sub/unit1.pas';
Which might fail with linking errors.
Is this a feature or a bug?
A feature.
First of all, normally it won't work either way, becau
Hi,
FPC allows to use two different units with the same name:
uses foo in 'unit1.pas', bar in 'sub/unit1.pas';
Which might fail with linking errors.
Is this a feature or a bug?
Mattias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http: