Re: [fpc-pascal] linker error when cross compile for arm

2010-11-07 Thread Michael Fung
Many Thanks Jonas! Now I know my SDK may be broken. Rgds, Michael On 2010/11/8 上午 05:06, Jonas Maebe wrote: > > On 06 Nov 2010, at 04:18, Michael Fung wrote: > >> But when I try to compile a program with the synapse units it gives the >> following error: >> >> /usr/lib/fpc/2.5.1/units/arm-linu

Re: [fpc-pascal] Re: variables in class, class variables and fields

2010-11-07 Thread Jonas Maebe
On 06 Nov 2010, at 16:16, ik wrote: > Further more, what is the difference between a "normal" field and a variable > inside a class: Nothing. Everything defined in a "var" section is a field. The reason the "var" keyword can now be used, is because it is now also possible to define types and c

Re: [fpc-pascal] linker error when cross compile for arm

2010-11-07 Thread Jonas Maebe
On 06 Nov 2010, at 04:18, Michael Fung wrote: > But when I try to compile a program with the synapse units it gives the > following error: > > /usr/lib/fpc/2.5.1/units/arm-linux/rtl/cprt0.o: In function > `_haltproc_eabi': > (.text+0x88): undefined reference to `_fini' > /usr/lib/fpc/2.5.1/units

[fpc-pascal] Re: Dynamic array as result of class method?

2010-11-07 Thread Bo Berglund
On Sun, 7 Nov 2010 11:23:03 +0100, Jonas Maebe wrote: > >> Is it illegal to specify a dynamic array as the result type of a >> function? > >No, but you cannot declare it inline, just like you cannot have > >function read(count: cardinal): record b: byte end; > >Use a separately defined type: > >t

Re: [fpc-pascal] Re: Is it posible to get a minimal installation of Lazarus?

2010-11-07 Thread yu ping
I've download the MseGUI IDE and source,I successfully Compile a project and run it. Thanks :) pingyu ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Dynamic array as result of class method?

2010-11-07 Thread Wimpie Nortje
TByteDynArray is defined in unit 'types' On 2010/11/07 12:23 PM, Jonas Maebe wrote: > > On 07 Nov 2010, at 11:05, Bo Berglund wrote: > >>function Read(Count: Cardinal): array of byte; overload; >> end; >> >> But when I use the Ctrl-Shift-C command on this to make Lazarus >> complete the cod

Re: [fpc-pascal] Dynamic array as result of class method?

2010-11-07 Thread Jonas Maebe
On 07 Nov 2010, at 11:05, Bo Berglund wrote: >function Read(Count: Cardinal): array of byte; overload; > end; > > But when I use the Ctrl-Shift-C command on this to make Lazarus > complete the code I get an error on the second Read line: > sscomm.pas(40,37) Error: identifier expected, but a

[fpc-pascal] Dynamic array as result of class method?

2010-11-07 Thread Bo Berglund
I am trying to design a buffer handling class where I want to have a read function, which should return a result in the form of a byte array of varying length. Something like this: TBufHandler = class private FBuf: array of byte; FBufSize: Cardinal; FWriteIndex: Cardinal; FRead

[fpc-pascal] Re: Is it posible to get a minimal installation of Lazarus?

2010-11-07 Thread leledumbo
Maybe you can uninstall all packages and delete their files (including source codes). But I don't think it's a big gain, you'll still end up in > 100 MB since Lazarus needs FPC source for code completion and refactoring feature. -- View this message in context: http://free-pascal-general.1045716

Re: [fpc-pascal] Problems with "relocation errors"

2010-11-07 Thread Jonas Maebe
On 05 Nov 2010, at 18:29, Krzysztof wrote: > I build project with -fPIC switch and reinstall lNet package with -fPIC > switch and rebuild lazarus with -fPIC switch but nothing helped. > This error occurs in different files, depending on where I put the -fPIC > switch (lnet package installer, p