Re: [fpc-pascal] can the output object filename be specified on the command line?

2009-12-08 Thread DONALD PEDDER
Just write a script to call the program and do the re-name. e.g. create call_bar.pas_with_rename in a directory that's in your path with following code... set homedir=(where-ever this stuff lives) cd $homedir bar.pas mv bar.o ${1}.o Then you can just run "call_bar.pas_with_rename foo_bar"

Re: [fpc-pascal] Using Move() with dynamic arrays -> RunError(0)

2009-12-08 Thread Žilvinas Ledas
Marco van de Voort wrote: The move also tries to take the address element 0 for arrays when they are 0. The for loop doesn't execute in that case. Thanks! Didn't thought about that. Regards, Žilvinas ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Using Move() with dynamic arrays -> RunError(0)

2009-12-08 Thread Marco van de Voort
In our previous episode, ??ilvinas Ledas said: > > function TFrame.getAllFrame(): TArrayOfSmallInt; > var > tmpBuf: TArrayOfSmallInt; > i: Integer; > begin > startOverlapLen := Length(startOverlap); > mainAreaLen := Length(mainArea); > endOverlapLen := Length(endOverlap); > > SetLengt

[fpc-pascal] Using Move() with dynamic arrays -> RunError(0)

2009-12-08 Thread Žilvinas Ledas
Hello all, I'm trying to use Move() with dynamic arrays, but don't know why it fails... When instead commented out "for .. do" code I use Move() code my app gets RunError(0) after some time. When I use "for .. do" everything works ok. I'm using Free Pascal Compiler version 2.3.1 [2009/11/03] f

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-08 Thread Jonas Maebe
On 08 Dec 2009, at 23:25, Dariusz Mazur wrote: > By the way: > when XR path is set then XP should be default, but its not -XP is set by /etc/fpc.cfg if the source cpu is different from the target CPU, and if the source and target OS are not both Darwin (because on Mac OS X, the default as/ld c

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-08 Thread Dariusz Mazur
Jonas Maebe pisze: On 08 Dec 2009, at 15:06, Dariusz Mazur wrote: Hartmut Eilers pisze: DeviceServer.pas(609,2) Error: Error while linking DeviceServer.pas(609,2) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted ubu...@kubuntu904:~/OpenLabTools/DeviceServer

Re: [fpc-pascal] Re: Linking Problems while cross compiling for arm

2009-12-08 Thread Jonas Maebe
On 08 Dec 2009, at 13:24, Hartmut Eilers wrote: No I haven't done that, but I will do, can you give me a hint what I should try to crosscompile? A "hello world" program compiled using something like arm-unknown-linux-uclib-gcc -o hello hello.c -ldl is enough. And it will probably fail wit

[fpc-pascal] Re: Linking Problems while cross compiling for arm

2009-12-08 Thread Hartmut Eilers
Hallo, >> The toolchain I use is from free electron an embedded company which >> uses this toolchain to build kernels for the USB9263. From my point of >> view it must be possible to link against this toolchain. > > It's apparently "free electrons", not free electron. And they > distribute a bunch

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-08 Thread Jonas Maebe
On 08 Dec 2009, at 15:06, Dariusz Mazur wrote: Hartmut Eilers pisze: DeviceServer.pas(609,2) Error: Error while linking DeviceServer.pas(609,2) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted ubu...@kubuntu904:~/OpenLabTools/DeviceServer$ ls /usr/local/xto

Re: [fpc-pascal] Linking Problems while cross compiling for arm

2009-12-08 Thread Dariusz Mazur
Hartmut Eilers pisze: Hallo List, thanks for your first and fast response. According to the suggestions from Marco and Jonas I try it this way: ubu...@kubuntu904:~/OpenLabTools/DeviceServer$ /usr/local/bin/ppcrossarm -CfFPA -dUSB92 -CaARMEB -CpARMV5 -darm -dFPC_ARMEL -gl -Fu../webserver -Fu..

Re: [fpc-pascal] Help porting DeCAL library

2009-12-08 Thread leledumbo
Why don't you post it somewhere? In Lazarus-CCR perhaps? Or contributed units? I believe the license permits (I've read it). -- View this message in context: http://old.nabble.com/Help-porting-DeCAL-library-tp26671529p26693914.html Sent from the Free Pascal - General mailing list archive at Nabb

Re: [fpc-pascal] char in [range]

2009-12-08 Thread Frank Peelo
On 07/12/2009 19:41, ik wrote: http://ik.homelinux.org/ On Mon, Dec 7, 2009 at 4:43 PM, Jonas Maebe > wrote: On 07 Dec 2009, at 15:19, Frank Peelo wrote: On 07/12/2009 13:40, ik wrote: Now it works properly. However it seems like t

Re: [fpc-pascal] Re: Linking Problems while cross compiling for arm

2009-12-08 Thread Jonas Maebe
On 08 Dec 2009, at 11:18, Hartmut Eilers wrote: I'm trying hard for 5 days now and I'm really frustrated, can anybody give me advice which toolchain may work or how my error can be resolved? The toolchain I use is from free electron an embedded company which uses this toolchain to build ker

[fpc-pascal] Re: Linking Problems while cross compiling for arm

2009-12-08 Thread Hartmut Eilers
@Marco I recompiled the crosscompiler with the OPT ... parameter the result is the same, linker complains that he couldn't find libdl @Dariusz I added lib to the Xr Param with no effort ubu...@kubuntu904:~/OpenLabTools/DeviceServer$ ls /usr/local/xtools/arm-unknown-linux-uclibc/arm-unknown-linux

Re: [fpc-pascal] Help porting DeCAL library

2009-12-08 Thread Marco van de Voort
In our previous episode, leledumbo said: > > Whoops! Seems like I'm doing an effort doubling. I'll use the one you point > instead. Thanks. I did that port long ago, so questions can go on this list. ___ fpc-pascal maillist - fpc-pascal@lists.freepa

Re: [fpc-pascal] Help porting DeCAL library

2009-12-08 Thread leledumbo
Whoops! Seems like I'm doing an effort doubling. I'll use the one you point instead. Thanks. Vincent Snijders-2 wrote: > > leledumbo schreef: >> http://old.nabble.com/file/p26671529/decal-1.zip Here is a FPC >> conversion of >> DeCAL library. However, many things still don't work. Please see >