[fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-16 Thread Giuliano Colla

Hello,

I'm trying to upgrade from fpc 2.6.4 to 3.0.0 but make all fails both in 
Linux x86_64 platfoms and in arm-linux (Raspbian) plaform.


I've downloaded a precompiled 3.0.0 in order to be able to compile. I 
have also tried using fpcup, but the result is the same in all cases:


while compiling package paszlib, in file zbase.pas it fails with:

zbase.pas(446,7) Error: Illegal expression

where the offending line is a simple
  str(err,zerror);

and with

zbase.pas(447,36) Error: Operator is not overloaded: "Constant String" + 
"zError(LongInt):AnsiString;"


where the offending line is
zerror:='Unknown zlib error '+zerror;

If I try to continue by patching the offending lines, the unit compiles 
but then I get tons of errors from the trees.pas unit.


Any idea? Do I need to add some options previously unneeded besides '-gl 
-O3p3' ?


Giuliano

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


[fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-16 Thread Zaaphod
I am trying to get access to the parallel port with Free Pascal.  

I'm trying to use this version of inpout32 (x64)
http://www.highrez.co.uk/downloads/inpout32/ 

Here's my program:
http://pastebin.com/facf6EFc

Here's my Unit:
http://pastebin.com/XR0aYUPR

When I try to run it, I get a windows message The application was unable to
start correctly (0xc07b). click ok to close the application.

then  I get Exitcode 123 in the Free Pascal IDE.  123 is decimal of 7b.

Does anyone know how to get this to work?   reading and writing the parallel
port used to be so easy, now it's extremely confusing, thanks windows!



--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Parallel-Port-Access-with-Free-Pascal-windows-tp5725725.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-16 Thread Jonas Maebe

On 16/07/16 15:23, Giuliano Colla wrote:

I'm trying to upgrade from fpc 2.6.4 to 3.0.0 but make all fails both in
Linux x86_64 platfoms and in arm-linux (Raspbian) plaform.

I've downloaded a precompiled 3.0.0 in order to be able to compile. I
have also tried using fpcup, but the result is the same in all cases:

while compiling package paszlib, in file zbase.pas it fails with:

zbase.pas(446,7) Error: Illegal expression

where the offending line is a simple
  str(err,zerror);

and with

zbase.pas(447,36) Error: Operator is not overloaded: "Constant String" +
"zError(LongInt):AnsiString;"

>
> where the offending line is
> zerror:='Unknown zlib error '+zerror;
>

These errors suggest you are not compiling that unit in FPC mode. If you 
use the top level Makefile in the fpcsrc directory, it will compile the 
packages directory with RELEASE=1, which in turn causes -n to be added 
to the FPC command line options so that it ignores any default 
(.)fpc.cfg files (that may otherwise contain -Mdelphi or so). The 
default compiler mode in FPC (including 3.0) is plain FPC mode.



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


Re: [fpc-pascal] unable to compile 3.0.0 both Linux x86_64 and arm-linux

2016-07-16 Thread Giuliano Colla

Il 16/07/2016 15:52, Jonas Maebe ha scritto:

These errors suggest you are not compiling that unit in FPC mode. If 
you use the top level Makefile in the fpcsrc directory, it will 
compile the packages directory with RELEASE=1, which in turn causes -n 
to be added to the FPC command line options so that it ignores any 
default (.)fpc.cfg files (that may otherwise contain -Mdelphi or so). 
The default compiler mode in FPC (including 3.0) is plain FPC mode. 


I'm using the top level Makefile, while buildin All. Everything else, 
before that package, compiles properly (compiler, LCL, other packages, etc.)
Should I locate something specific which might turn off FPC mode in the 
affecting package Makefiles or fpmake or whatever, or in the upper 
folder (packages)?


Thanks,

Giuliano



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