[fpc-pascal] Re: [Help] fppkg on Windows

2012-04-10 Thread leledumbo
Try set a full path to the compiler driver binary (fpc.exe) or put its directory in PATH. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Help-fppkg-on-Windows-tp5628510p5629238.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

[fpc-pascal] Looking for NSOpenGLView example

2012-04-10 Thread dhkblaszyk
Hi, I'm looking for an example of how to use NSOpenGLView. I would like to create a native opengl window on Mac. Sofar I have found only some snippets but nothing that actually shows how to setup and use a native window. I will prepare a demo app so it can be included in the examples of the

[fpc-pascal] compiling jvmbackend

2012-04-10 Thread ik
Hello, I'm trying to compile jvmbacked (once again after a long time). It seems to work well at first with the following cli make: sudo make CROSSOPT=-O2 -g -FD/usr/share/java/ CPU_TARGET=jvm OS_TARGET=android INSTALL_PREFIX=/usr/ FPC=/usr/bin/ppcx64 all crossinstall But then I get the

Re: [fpc-pascal] compiling jvmbackend

2012-04-10 Thread Jonas Maebe
ik wrote on Tue, 10 Apr 2012: Hello, I'm trying to compile jvmbacked (once again after a long time). It seems to work well at first with the following cli make: sudo make CROSSOPT=-O2 -g -FD/usr/share/java/ CPU_TARGET=jvm OS_TARGET=android INSTALL_PREFIX=/usr/ FPC=/usr/bin/ppcx64 all

Re: [fpc-pascal] compiling jvmbackend

2012-04-10 Thread ik
‎On Tue, Apr 10, 2012 at 17:15, Jonas Maebe jonas.ma...@elis.ugent.be wrote: ik wrote on Tue, 10 Apr 2012: Hello, I'm trying to compile jvmbacked (once again after a long time). It seems to work well at first with the following cli make: sudo make CROSSOPT=-O2 -g -FD/usr/share/java/  

[fpc-pascal] Problems with assigning pointers

2012-04-10 Thread dhkblaszyk
I have some issues when assigning a pointer to a pointer variable. Consider this: TVertex = record x: double; y: double; end; PVertex = ^TVertex; TEdge = record v1: PVertex; v2: PVertex; end; I have assigned a value to a vertex variable. In my code I have an array of TEdge.

Re: [fpc-pascal] Problems with assigning pointers

2012-04-10 Thread Mattias Gaertner
On Tue, 10 Apr 2012 18:08:04 +0200 dhkblas...@zeelandnet.nl wrote: I have some issues when assigning a pointer to a pointer variable. Consider this: TVertex = record x: double; y: double; end; PVertex = ^TVertex; TEdge = record v1: PVertex; v2: PVertex; end;

[fpc-pascal] Re: Problems with assigning pointers

2012-04-10 Thread leledumbo
Can't reproduce with the following program: type TVertex = record x: double; y: double; end; PVertex = ^TVertex; TEdge = record v1: PVertex; v2: PVertex; end; var edge_count: LongWord = 0; edge_list: array of TEdge; procedure add_edge(v1, v2: PVertex); begin

Re: [fpc-pascal] Problems with assigning pointers

2012-04-10 Thread Jürgen Hestermann
dhkblas...@zeelandnet.nl schrieb: edge_list[edge_count - 1].v1 := v1; // after this line the value of v1^.x suddenly is changed!!??!! Could it be that you do something else with edge_list before the assignment? Keep in mind that edge_list is a dynamic array and therefore a pointer

Re: [fpc-pascal] Problems with assigning pointers

2012-04-10 Thread Alberto Narduzzi
But pointer are always a source of errors. Only use them when it's unavoidable. If you can do the same without pointers then don't use them. ;-) Of course, if you just use pointers because others do, indeed they might be... No comment. A. ___

Re: [fpc-pascal] Re: Problems with assigning pointers

2012-04-10 Thread Darius Blaszyk
Here's a minimal example that has the bug. First of all the first output is wrong as it says 0,50 instead of 20,50 (so the x item is overwritten). The second printed output differs from the first, so again the x item is overwritten. I'm clueless. program test; {$mode objfpc}{$H+} type

Re: [fpc-pascal] Re: [Help] fppkg on Windows

2012-04-10 Thread Lars Klungseth
Hi leledumbo, Thanks for your quick reply. Try set a full path to the compiler driver binary (fpc.exe) Setting the GlobalPrefix to the full path to fpc.exe, will produce the following error as the GlobalPrefix is referenced more than once.

Re: [fpc-pascal] Re: Problems with assigning pointers

2012-04-10 Thread Vincent Snijders
Op 10 april 2012 22:06 heeft Darius Blaszyk dhkblas...@zeelandnet.nl het volgende geschreven: Here's a minimal example that has the bug. First of all the first output is wrong as it says 0,50 instead of 20,50 (so the x item is overwritten). The second printed output differs from the first, so

Re: [fpc-pascal] Re: [Help] fppkg on Windows

2012-04-10 Thread Lars Klungseth
Your second suggestion, or put its directory (fpc.exe) in PATH. proved to be the answer. C:\lazarus\fpc\2.6.0\bin\i386-win32fppkg install lazmkunit Start building package lazmkunit for target i386-win32. Compiling lazmkunit.pp [100%] Built target