[fpc-pascal] Re: jvmbackend merge

2012-06-03 Thread leledumbo
I tried building the compiler, it passes but I have to do some changes. The make process fails after compiling the compiler ended with some warnings regarding constructing a class with abstract method in compiler/jvm/hlcgcpu.pas. The compiler seems to return exit code 1 on warnings and that's the

[fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
Hi, Im trying to access an open array but I get a runtime error. I googled a bit, and found some suggestions, but for me they don't work. It's actually a port of some C-library I want to use on a STM32-processor. This is my test-code : program LCDtest1; type TArray = array of byte; var

Re: [fpc-pascal] Re: jvmbackend merge

2012-06-03 Thread Sven Barth
On 03.06.2012 17:48, leledumbo wrote: I tried building the compiler, it passes but I have to do some changes. The make process fails after compiling the compiler ended with some warnings regarding constructing a class with abstract method in compiler/jvm/hlcgcpu.pas. The compiler seems to return

Re: [fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
On 03-06-12 17:53, Koenraad Lelong wrote: Hi, Im trying to access an open array but I get a runtime error. I googled a bit, and found some suggestions, but for me they don't work. Forgot to say : runtime error is 216. modified (with the same error) : const FONT6x8 : array[0..775] of byte =

Re: [fpc-pascal] Accessing open array

2012-06-03 Thread Jonas Maebe
On 03 Jun 2012, at 17:53, Koenraad Lelong wrote: Im trying to access an open array but I get a runtime error. You are trying to use a pointer to a static array as a pointer to a dynamic array (not an open array; have a look at e.g. http://rvelthuis.de/articles/articles-openarr.html to read

Re: [fpc-pascal] Accessing open array

2012-06-03 Thread Mark Morgan Lloyd
Koenraad Lelong wrote: Hi, Im trying to access an open array but I get a runtime error. I googled a bit, and found some suggestions, but for me they don't work. It's actually a port of some C-library I want to use on a STM32-processor. This is my test-code : program LCDtest1; type TArray

Re: [fpc-pascal] Accessing open array

2012-06-03 Thread Koenraad Lelong
Hi, Looking at the C-code again, I saw I could actually use a pointer to byte, instead of a pointer to an array of bytes. So I'm using this : program LCDtest1; var nCols : cardinal; nRows : cardinal; nBytes : cardinal; pFont : ^byte; {$include fonts.inc} begin // get pointer to the