[fpc-pascal] OnGuard WinCE
Hi, i can't compile TPOnGuard for WinCE ... Does anyone succeded to use TPOnGuard in WinCE ? regards, -- Dimitrios Chr. Ioannidis No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.18/1850 - Release Date: 15/12/2008 5:04 ìì ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: Re: [fpc-pascal] Hello World for Darwin ?
> I suspect cross compiling not functional. Then it's a surprise I can compile for Linux from my Win32 machine, just don't forget the i386-linux-ld. Don't expect you have cross compiling capability out of the box. Some tools and libraries might be needed depending on your needs. -- View this message in context: http://www.nabble.com/Re%3A-Hello-World-for-Darwin---tp21011290p21027202.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/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Schema Types
Dear FPC, fancy:=new(fancy_type); // or something similar, I usually use GetMem not New SetLength(fancy.first, 10, 20); SetLength(fancy.second, 10, 20); SetLength(fancy.third, 300); Nice. I see how it works. Thank you very much (Felipe and Florian) for your answers. I'll try porting some code to FPC. Yours, Kevan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Schema Types
fancy:=new(fancy_type); // or something similar, I usually use GetMem not New SetLength(fancy.first, 10, 20); SetLength(fancy.second, 10, 20); SetLength(fancy.third, 300); -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Schema Types
Dear Florian, var a : array of array of real; begin setlength(a,num_rows,num_columns); Interesting. What about schema types that are no simple arrays? Like this one: type fancy_type(a,b,c:integer)=record first:array [0..a,0..b] of integer; second:array [0..a,0..b] of real; third: array [0..c] of char; end; var fancy:^fancy_type; begin fancy:=new(fancy,10,20,300); How do I apply setlength to "first" and "second" after declaring the fancy_type? Yours, Kevan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Schema Types
Kevan Hashemi schrieb: > Dear FPC, > > I'm considering movingn from GPC to FPC. One thing I like very much > about GPC is its schema types. I can declare a matrix like this: > > matrix_type(num_rows,num_columns:integer)= > array [1..num_rows,1..num_columns] of real; > > and then create a new matrix with: > > var > M:^matrix_ptr; > num_rows,num_columns:integer; > > begin > readln(num_rows,num_columns); > M:=new(M,num_rows,num_columns); > > So far as I can tell, FPC supports one-dimentional dynamic arrays, but > not more complicated schema types. Is that true? FPC supports multi dimensional dyn. arrays with var a : array of array of real; begin setlength(a,num_rows,num_columns); ... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Schema Types
Dear FPC, I'm considering movingn from GPC to FPC. One thing I like very much about GPC is its schema types. I can declare a matrix like this: matrix_type(num_rows,num_columns:integer)= array [1..num_rows,1..num_columns] of real; and then create a new matrix with: var M:^matrix_ptr; num_rows,num_columns:integer; begin readln(num_rows,num_columns); M:=new(M,num_rows,num_columns); So far as I can tell, FPC supports one-dimentional dynamic arrays, but not more complicated schema types. Is that true? Yours, Kevan -- Kevan Hashemi, President Open Source Instruments Inc. www.opensourceinstruments.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] number of cpu cores
2008/12/14 Marc Weustink : > Mattias Gaertner wrote: >> >> At the moment I have the attached function. >> It returns only 4 on a 2 x quad core Mac. >> Maybe someone can test under windows? Return 2 on Intel Core Duo -- Inoussa O. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Hello World for Darwin ?
Skybuck Flying wrote: I suspect cross compiling not functional. Not unless you installed the cross compiler, no. I did find a free pascal compiler for Mac OS X so I ll give that one a try ;) The native compilers work fine on both Intel and PPC Macs. I believe building *nix cross compilers on Win32 can be a bit of a bear. Something to do with libraries and linkers from memory (hazy as I don't do Win32) You can relatively easily build Win32 and Darwin cross compilers on Linux. I build for all three(4) platforms from my Linux machine. b...@bklaptop2:~$ uname -a Linux bklaptop2 2.6.27.7 #1 Sat Nov 29 13:35:51 GST 2008 i686 GNU/Linux b...@bklaptop2:~$ fpc -Ppowerpc -Tdarwin test.pas Free Pascal Compiler version 2.2.3 [2008/11/28] for powerpc Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Darwin for PowerPC Compiling test.pas Assembling hello_world Linking test 5 lines compiled, 0.3 sec b...@bklaptop2:~$ file test test: Mach-O executable ppc Regards, Brad -- Dolphins are so intelligent that within a few weeks they can train Americans to stand at the edge of the pool and throw them fish. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Hello World for Darwin ?
On Sun, December 14, 2008 23:32, Skybuck Flying wrote: > That didn't go well. > > Couldn't install package, the installer said. > > RTF can't be opened. > > So much for that. See information about cross-compilation in FPC Wiki (http://wiki.freepascal.org/Cross_compiling) including the referenced documents like buildfaq.pdf. However, don't expect cross-compilation from Win32 to Mac OS X to be very easy. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Hello World for Darwin ?
That didn't go well. Couldn't install package, the installer said. RTF can't be opened. So much for that. Bye, Skybuck. - Original Message - From: "Skybuck Flying" To: "FPC-Pascal users discussions" Sent: Sunday, December 14, 2008 11:25 PM Subject: Re: Hello World for Darwin ? I suspect cross compiling not functional. I did find a free pascal compiler for Mac OS X so I ll give that one a try ;) This does require compiling inside a virtual machine which is less ideal/slow ? ;) And could expose source code but ok... net's disabled for now I hope ;) Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Hello World for Darwin ?
I suspect cross compiling not functional. I did find a free pascal compiler for Mac OS X so I ll give that one a try ;) This does require compiling inside a virtual machine which is less ideal/slow ? ;) And could expose source code but ok... net's disabled for now I hope ;) Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Hello World for Darwin ?
Hello, 1. I start fp 2. I open file: program HelloWorldv2; {$mode delphi} begin writeln('Hello Free Pascal World !'); readln; end. 3. I tried to compile/build to "Darwin i386". 4. Error/compile screen says: Main file: Y:\..\helloworld\helloworldv2.pas Failed to compile... Target: Darwin for i386 Line number: 0 Total lines: 0 Used memory:208KAllocated memory: 1504K Total errors: 1 Compile time:0.0s 5. FP about box says: FreePascal IDE for Win32 for i386 Target CPU: i386 Version 1.0.10 2008/08/03 (Compiler Version 2.2.2) (Debugger GDB 6.2.1) Copyright (C) 1998-2008 by Bérczi Gábor Pierre Muller and Peter Vreman I want to make little Hello World example for Mac OS X :) How can I do this ? Little help/tutorial would be helpfull ;) Website says FPC had compile bugs for Darwin ? Compiler 2.2.2 is on my system do I need to update or something ? Bye, Skybuck. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal