Re: [fpc-pascal] Killing the mail list

2020-03-18 Thread Torsten Bonde Christiansen
I completely agree with that! /Torsten On 15/03/2020 18.34, Alexander Grotewohl wrote: Not that I'm anyone special but I and many others who lurk for the most part would probably just lose track of the project. -- Alexander Grotewohl https://dcclost.com --

[fpc-pascal] Using docker to build software

2019-05-28 Thread Torsten Bonde Christiansen
Hi List. I am curious to know if there is someone out there that have tried to use Docker (https://www.docker.com) containers to build fpc applications? I have 3 applications in a suite that I am thinking of experimenting with, see if I can create an image containing eg. Ubuntu linux, FPC, L

[fpc-pascal] Cross compiling Linux to OS X

2019-03-27 Thread Torsten Bonde Christiansen
Hi all. I recently update from fpc 3.0.0 to 3.0.4 (yes, a little late i know...) for our range of application. In order to simplify our build i have a VM with linux running on it and in there i had it setup to crosscompile fra Linux -> Win32/Win64/Linux32/Darwin-i386. But after the upgrade I

[fpc-pascal] Undocumented SetLength functionality

2018-05-15 Thread Torsten Bonde Christiansen
Hi All. I just discovered that SetLength(Var S: Array; NewLength: Integer) has an undocumented (appenrently unlimited number of) overloaded functions. Any multi dimentional arrays may be sent to SetLength with appropriate dimension sizes. Making the following possible: program SetArrayLengt

[fpc-pascal] Copy dynamic array

2018-05-15 Thread Torsten Bonde Christiansen
Hi List. This i a real newbie question: I hardly use dynamic array, so I don't know if there is a simpler method to copying a dynamic interger array than the straigh forward method: (I need a copy to preseve the current values of OldArray, since OldArray will change values later in the progr

[fpc-pascal] Lazarus Mailing list down?

2018-04-03 Thread Torsten Bonde Christiansen
Hi All. I haven't gotten any mails on the Lazarus mailing list since 31/03-2018 - and the two mails I sent today doesn't seem to have gone through. Kind regards, Torsten. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

[fpc-pascal] TInifile does not handle " " (space) as a value.

2017-08-04 Thread Torsten Bonde Christiansen
27; '); Ini.Free; Ini := TIniFile.Create('/tmp/test.ini'); S := Ini.ReadString('sec1', 'S', 'ZZ'); // S is '' and not ' ' as expected Ini.Free; end. Is this considered a bug or "by design"? Kind regards Torsten Bo

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-16 Thread Torsten Bonde Christiansen
On 2017-05-16 10:26, leledumbo via fpc-pascal wrote: However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching pair would be fine. The match only has to be done from the

[fpc-pascal] Partial text search in a dictionary

2017-05-15 Thread Torsten Bonde Christiansen
Hi list. I am looking for a class/list/map... that allows me to store string data paired with an object. However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching pa

Re: [fpc-pascal] server down?

2016-10-17 Thread Torsten Bonde Christiansen
On 2016-10-17 17:28, Mattias Gaertner wrote: Hi, On the bug tracker login page http://mantis.freepascal.org/login_page.php?return=%2Fmy_view_page.php%3F I see this text: Do you already have a login at Free Pascal Community? You can use that login here (use your e-mail address as username). Wh

[fpc-pascal] RTF writer

2016-08-05 Thread Torsten Bonde Christiansen
Hi List. I am looking for at component that can write RTF format, preferably like the TRichMemo: http://wiki.lazarus.freepascal.org/RichMemo but without the need for LCL. In fpc 3.0 there is a RTF reader, but i have not been able to find a writer. Kind regards, Torsten

Re: [fpc-pascal] Single threaded application on multicore CPU

2016-06-22 Thread Torsten Bonde Christiansen
On 2016-06-22 09:02, LacaK wrote: Hi *, may be that this question is bit off-topic here, but I am sure, that here are experts, which know answer ;-) I have simple Lazarus/FPC application (with no explicit threads) which does intensive calculations (local thresholding with big window size) o

Re: [fpc-pascal] FPC 3.0 using clang for cross compile

2016-06-15 Thread Torsten Bonde Christiansen
On 2016-06-14 15:34, Jonas Maebe wrote: Torsten Bonde Christiansen wrote: Is there a reason why fpc needs the llvm for cross compiling (I'm building agains OSX 10.5) - it was not need for fpc 2.6.4... http://wiki.freepascal.org/User_Changes_3.0#Default_assembler_for_D

[fpc-pascal] FPC 3.0 using clang for cross compile

2016-06-14 Thread Torsten Bonde Christiansen
Hi List. I just recently tried to update the build system for our products in order to use fpc 3.0, but found that when i try to make the cross-compiler for Mac OS, it reports an error on missing: /home/epidata/FreePascal/release_3_0_0/compiler/ppcross386 -dNOMOUSE -Ur -dFPC_USE_LIBC -Tdarwi

Re: [fpc-pascal] Parser Generator

2016-05-22 Thread Torsten Bonde Christiansen
On 2016-05-20 10:40, Carlo Kok wrote: On 2016-05-19 13:10, Torsten Bonde Christiansen wrote: Hi. I am currently looking into integrating a custom language parser into my program and have been searching the web for parser generators that can create Pascal code from a custom language. So far

Re: [fpc-pascal] Parser Generator

2016-05-22 Thread Torsten Bonde Christiansen
On 2016-05-20 10:58, Marc Santhoff wrote: On Fr, 2016-05-20 at 10:53 +0200, Marc Santhoff wrote: There are some tools I liked very much when dealing with language translation in the past, but they don't fit her. None of them generates ^e "they

[fpc-pascal] Parser Generator

2016-05-19 Thread Torsten Bonde Christiansen
ion of the program. * TP Yacc/Lex: (included in Free Pascal) Is included with Free Pascal, but the generated code is non-OO, and seems to rely on text-files for input. So if there is anyone out there who knows of such a generator I would be glad to know. Kind regards, Torsten Bonde Ch

Re: [fpc-pascal] Writing floating points to steams

2016-01-13 Thread Torsten Bonde Christiansen
On 2016-01-13 10:40, Mark Morgan Lloyd wrote: Torsten Bonde Christiansen wrote: On 2016-01-13 10:06, Mark Morgan Lloyd wrote: Serguei TARASSOV wrote: On 13/01/2016 08:47, fpc-pascal-requ...@lists.freepascal.org wrote: On 2016-01-12 10:45, Torsten Bonde Christiansen wrote: Since TStream

Re: [fpc-pascal] Writing floating points to steams

2016-01-13 Thread Torsten Bonde Christiansen
On 2016-01-13 10:06, Mark Morgan Lloyd wrote: Serguei TARASSOV wrote: On 13/01/2016 08:47, fpc-pascal-requ...@lists.freepascal.org wrote: On 2016-01-12 10:45, Torsten Bonde Christiansen wrote: Since TStream doesn't have any native WriteFloat/Double and the likes, some conversion is n

Re: [fpc-pascal] Writing floating points to steams

2016-01-12 Thread Torsten Bonde Christiansen
On 2016-01-12 12:38, Michael Van Canneyt wrote: On Tue, 12 Jan 2016, Torsten Bonde Christiansen wrote: On 2016-01-12 12:04, Graeme Geldenhuys wrote: On 2016-01-12 10:45, Torsten Bonde Christiansen wrote: Since TStream doesn't have any native WriteFloat/Double and the likes, some conve

Re: [fpc-pascal] Writing floating points to steams

2016-01-12 Thread Torsten Bonde Christiansen
On 2016-01-12 12:04, Graeme Geldenhuys wrote: On 2016-01-12 10:45, Torsten Bonde Christiansen wrote: Since TStream doesn't have any native WriteFloat/Double and the likes, some conversion is needed - but what is a good strategy for this? I use FloatStr() to do the conversion, then Write

[fpc-pascal] Writing floating points to steams

2016-01-12 Thread Torsten Bonde Christiansen
Hi all. What is the best/preferred way to write floatingpoint to a steam? Since TStream doesn't have any native WriteFloat/Double and the likes, some conversion is needed - but what is a good strategy for this? A simple conversion like Stream.WriteDWord( DWord(variable>)) is not possible due

[fpc-pascal] Generic with inheritance - fpc 3.0

2015-11-30 Thread Torsten Bonde Christiansen
Hi. The docs for 3.0 does not directly mention generics and inheriting from another generic class, but I tried out with the code below. It compiled, ran and worked fine but since the docs do not explicit mention it as a posibility I am a little reluctant to go forward using this strategy if is

Re: [fpc-pascal] OpenSSL

2015-11-18 Thread Torsten Bonde Christiansen
On 2015-11-18 13:32, Joost van der Sluis wrote: Op 18-11-15 om 08:00 schreef Torsten Bonde Christiansen: On 2015-11-17 18:25, Serguei TARASSOV wrote: On 17/11/2015 15:24, fpc-pascal-requ...@lists.freepascal.org wrote: In my program I need to use the OpenSSL unit from fpc (packages/openssl

Re: [fpc-pascal] OpenSSL

2015-11-17 Thread Torsten Bonde Christiansen
On 2015-11-17 18:25, Serguei TARASSOV wrote: On 17/11/2015 15:24, fpc-pascal-requ...@lists.freepascal.org wrote: Hi all. In my program I need to use the OpenSSL unit from fpc (packages/openssl) AND I also need to use the lNET package. However my problem is that lNET also include a file named o

[fpc-pascal] OpenSSL

2015-11-17 Thread Torsten Bonde Christiansen
Hi all. In my program I need to use the OpenSSL unit from fpc (packages/openssl) AND I also need to use the lNET package. However my problem is that lNET also include a file named openssl.pas, although it seems to be never that the one included in packages it does not have the same methods

Re: [fpc-pascal] IS operator and library created objects

2015-08-19 Thread Torsten Bonde Christiansen
On 2015-08-20 08:06, Sven Barth wrote: Am 20.08.2015 03:42 schrieb "Fabio Luis Girardi" mailto:fluisgira...@gmail.com>>: > Currently, I'm doing a small program that uses libraries, objects and the operator IS, that is know that this operator fails because of duplication of VMT. And /that/ i

Re: [fpc-pascal] Bootstrapping on Mac

2015-08-19 Thread Torsten Bonde Christiansen
On 2015-08-19 13:59, Jonas Maebe wrote: On 19/08/15 13:41, Torsten Bonde Christiansen wrote: I'm trying to build the compiler (svn checkout) from scratch using the bootstrapper binary "ppcuniversal" on a MAC running Mavericks (OS 10.9.x) The only supported/hassle-free way to bo

[fpc-pascal] Bootstrapping on Mac

2015-08-19 Thread Torsten Bonde Christiansen
Hi List. I'm trying to build the compiler (svn checkout) from scratch using the bootstrapper binary "ppcuniversal" on a MAC running Mavericks (OS 10.9.x) I start the buildprocess with the following line: make all PP=~/Downloads/ppcuniversal CPU_TARGET=i386 OS_TARGET=darwin OPT="-gl -gw -godwa

[fpc-pascal] For .. in .. loops with sets and valued enums

2015-06-19 Thread Torsten Bonde Christiansen
Consider the following program: program Project1; type TMyEnum = ( a = 1, b = 3, c = 5 ); TMySet = set of TMyEnum; var Item: TMyEnum; begin for Item in TMySet do Writeln('Value = ', Integer(Item)); end. I would expect the output of the program to contain the values 1

[fpc-pascal] Internal error 200611031

2015-04-30 Thread Torsten Bonde Christiansen
Hi. I was playing around with class helpers in my code and suddenly ran into an internal error on compilation. I can try to make a sample project, but is this a known problem or did I stumple upon an unknown bug. I have tried googling the error, but nothing related shows up. My compiler is

[fpc-pascal] Endian & Hex numbers

2015-04-13 Thread Torsten Bonde Christiansen
Hi list. Please forgive me if this is too dumb a question, but: When using a const written in hex, is the order significant? Ie. will eg. $1F01 result in the same value (7937) on both big-endian and little endian machines? Likewise, if I use an absolute reference to a variable is the endiann

[fpc-pascal] Common class type

2015-03-20 Thread Torsten Bonde Christiansen
Hi. Is there method in fpc to find the highest common class-type of two derived classes? Regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc

Re: [fpc-pascal] FieldAddress

2015-02-03 Thread Torsten Bonde Christiansen
On 2015-02-03 12:30, silvioprog wrote: On Tue, Feb 3, 2015 at 6:17 AM, Torsten Bonde Christiansen mailto:t...@epidata.info>> wrote: Hi, What does it take for a class to access a field using FieldAddress(...)? I have tried with both typeinfo on/off ({M+}), placing the

[fpc-pascal] FieldAddress

2015-02-03 Thread Torsten Bonde Christiansen
Hi, What does it take for a class to access a field using FieldAddress(...)? I have tried with both typeinfo on/off ({M+}), placing the field in private/protected/public/published sections but to no avail. My simple code is: TMyObject = class private FRef: TMyObject; procedure SetRef(AVa

Re: [fpc-pascal] NTP

2015-01-29 Thread Torsten Bonde Christiansen
On 2015-01-29 16:08, Graeme Geldenhuys wrote: On 2015-01-29 08:10, Torsten Bonde Christiansen wrote: Does anyone have experience on how to get the current date/time of an NTP server? If you use the Indy components, they have an example included. Great - thanks. I will have a look tomorrow

[fpc-pascal] NTP

2015-01-29 Thread Torsten Bonde Christiansen
Hi, Does anyone have experience on how to get the current date/time of an NTP server? Regards, Torsten. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Optimization switches

2015-01-14 Thread Torsten Bonde Christiansen
Hi. By chance I was looking at help page for compiler switches regarding optimazations: http://www.freepascal.org/docs-html/prog/progsu58.html#x65-640001.2.58 And I wonder if the switches below "LEVEL3" (eg. REGVAR, UNCERTAIN, ...) must be explicit applied during a compile or if they are in

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-24 10:57, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: Yes. A case where a check is missing doesn't automatically mean a feature has been implemented where that check is not needed. Overriding methods with declarations that don't

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-24 10:38, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: Should I add this to the bugtracker? Yes. The code with Tfoo and TBar above also shouldn't not compile, at least not in Delphi mode. Should I report this as a bug where this constru

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-22 17:33, Marco van de Voort wrote: In our previous episode, Torsten Bonde Christiansen said: The problem seem to be that the a descendant enumerator class overriding a virtual method cannot return a class which i only forward declared. If the TFoo and TBar classes are moved above

Re: [fpc-pascal] Bug in enumerators 2.6.4

2014-03-24 Thread Torsten Bonde Christiansen
On 2014-03-22 22:34, hinsta...@yandex.ru wrote: What you do this for? Using override directive makes no sense in this case, so I suggest you just don't use it. If you don't use it, the descendant enumerator will still work like intended I Think override makes perfect sense in this case. I get

[fpc-pascal] Bug in enumerators 2.6.4

2014-03-22 Thread Torsten Bonde Christiansen
which i only forward declared. If the TFoo and TBar classes are moved above the TBarListEnumerator the code compiles without any problem. Should I add this to the bugtracker? Regards Torsten Bonde Christiansen. ps. my compiler details: torsten@epidata:~$ ppcx64 -i Free Pascal Compiler version

[fpc-pascal] Bug in enumerators 2.6.4

2014-03-21 Thread Torsten Bonde Christiansen
which i only forward declared. If the TFoo and TBar classes are moved above the TBarListEnumerator the code compiles without any problem. Should I add this to the bugtracker? Regards Torsten Bonde Christiansen. ps. my compiler details: torsten@epidata:~$ ppcx64 -i Free Pascal Compiler version

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 14:33, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: Bug reported as: http://bugs.freepascal.org/view.php?id=25469 Including patch and program with test. Thank you, I will have a look ASAP

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 14:33, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: And if you provide fixes, make sure the testsuite still runs OK. I am not sure this case was tested at all - should i try implementing

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 13:26, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: On 2013-12-30 13:01, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: On 2013-12-19 21:23, Marco van de Voort wrote: Hello We have placed the first

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 13:01, Michael Van Canneyt wrote: On Mon, 30 Dec 2013, Torsten Bonde Christiansen wrote: On 2013-12-19 21:23, Marco van de Voort wrote: Hello We have placed the first release candidate of the Free Pascal Compiler version 2.6.4 on our ftp servers. You can help improve the

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
On 2013-12-30 12:54, Torsten Bonde Christiansen wrote: On 2013-12-19 21:23, Marco van de Voort wrote: Hello We have placed the first release candidate of the Free Pascal Compiler version 2.6.4 on our ftp servers. You can help improve the upcoming 2.6.4 release by downloading and testing this

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-30 Thread Torsten Bonde Christiansen
merged to the final 2.6.4. Regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Free Pascal 2.6.4-rc1 released!

2013-12-28 Thread Torsten Bonde Christiansen
On 2013-12-19 21:23, Marco van de Voort wrote: Hello Changes that may break backwards compatibility are documented at: http://wiki.freepascal.org/User_Changes_2.6.4 This page does not yet exists? Is this correct? Regards, Torsten Christiansen. ___

Re: [fpc-pascal] Android and cwstring

2013-08-01 Thread Torsten Bonde Christiansen
On 2013-08-01 21:58, Sven Barth wrote: On 01.08.2013 20:43, Torsten Bonde Christiansen wrote: On 2013-07-31 20:57, Sven Barth wrote: On 31.07.2013 20:55, Felipe Monteiro de Carvalho wrote: On Wed, Jul 31, 2013 at 8:51 PM, Sven Barth wrote: The cwstring of Android uses the ICU library

Re: [fpc-pascal] Android and cwstring

2013-08-01 Thread Torsten Bonde Christiansen
On 2013-07-31 20:57, Sven Barth wrote: On 31.07.2013 20:55, Felipe Monteiro de Carvalho wrote: On Wed, Jul 31, 2013 at 8:51 PM, Sven Barth wrote: The cwstring of Android uses the ICU library libicuuc.so. Is this available in the NDK for one of the higher API levels? It is not in the list for

Re: [fpc-pascal] Android and cwstring

2013-08-01 Thread Torsten Bonde Christiansen
On 2013-07-31 20:57, Sven Barth wrote: On 31.07.2013 20:55, Felipe Monteiro de Carvalho wrote: On Wed, Jul 31, 2013 at 8:51 PM, Sven Barth wrote: The cwstring of Android uses the ICU library libicuuc.so. Is this available in the NDK for one of the higher API levels? It is not in the list for

[fpc-pascal] Android and cwstring

2013-07-31 Thread Torsten Bonde Christiansen
Hi, I'm trying to create a library for use in an android application, but i'm having a hard time getting it to work correctly. More specifically i cannot get the library to use the "cwstring" unit. Below you see a working example of a library that works fine (the log entry is generated) when

Re: [fpc-pascal] Re: Android JNI failing in Galaxy S4

2013-05-22 Thread Torsten Bonde Christiansen
, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC_JVM compilation fails on trunk

2013-04-26 Thread Torsten Bonde Christiansen
On 2013-04-26 22:53, Jonas Maebe wrote: On 26 Apr 2013, at 22:37, Torsten Bonde Christiansen wrote: I'm trying to follow this guide:http://wiki.freepascal.org/FPC_JVM/Building But when i reach the point where i do the actual compilation fail with the following output: torsten@ep

[fpc-pascal] FPC_JVM compilation fails on trunk

2013-04-26 Thread Torsten Bonde Christiansen
Hi List. I'm trying to follow this guide: http://wiki.freepascal.org/FPC_JVM/Building But when i reach the point where i do the actual compilation fail with the following output: torsten@epidata:~/FreePascal/fpc-trunk$ make all crossinstall CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=android IN

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Torsten Bonde Christiansen
On 2013-02-12 16:36, Michael Van Canneyt wrote: On Tue, 12 Feb 2013, Torsten Bonde Christiansen wrote: On 2013-02-12 16:13, Leonardo M. Ramé wrote: Hi, I would like to know if there's a standard tree structure where each node is a TObject. With "standard" I mean

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Torsten Bonde Christiansen
me.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal FCL_base does have one: avl_tree but so does LCL, which is named AvgLvlTree (found in LazUtils) I hope that helps... ;) Kind regards, Torsten Bon

Re: [fpc-pascal] DOM and namespaces with prefix

2012-06-24 Thread Torsten Bonde Christiansen
On 2012-06-23 01:01, Daniel Gaspary wrote: On Tue, Jun 19, 2012 at 10:11 AM, Torsten Bonde Christiansen wrote: DDIInstance := XMLDoc.CreateElementNS('ddi:instance:3_0', 'DDIInstance'); DDIInstance.Prefix := 'ns1';// this gives me: which is great.

[fpc-pascal] DOM and namespaces with prefix

2012-06-19 Thread Torsten Bonde Christiansen
#x27;); Attr.Prefix := 'a'; DDIInstance.SetAttributeNode(Attr); // but this gives: a:huh=""/> Xmldoc.AppendChild(DDIInstance); WriteXMLFile(XMLDOc, '/tmp/test.xml'); end. How can i get the "xmlns:a="ddi:archive:3_0" without the additi

Re: [fpc-pascal] std::map equivalent?

2012-06-13 Thread Torsten Bonde Christiansen
On 2012-06-12 15:38, Xiangrong Fang wrote: Hi, Is there a std::map equivalent for free pascal? Thanks, Shannon If you wish to use generics you can try TFPGMap from the unit fgl. It does about the same. Kind regards, Torsten Bonde Christiansen

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
On 2012-05-10 11:16, Jonas Maebe wrote: Torsten Bonde Christiansen wrote on Thu, 10 May 2012: On 2012-05-10 10:45, t.wieckow...@gmail.com wrote: it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double(a

Re: [fpc-pascal] SIGFPE with SameValue()

2012-05-10 Thread Torsten Bonde Christiansen
On 2012-05-10 10:45, t.wieckow...@gmail.com wrote: it seams that MaxFloat get MaxDouble (FPC_HAS_TYPE_DOUBLE is defined) but SameValue uses as Single when overload. Works with SameValue(double(a),double(b),double(0)). best regards Tomek ___ fpc-pascal

[fpc-pascal] SIGFPE with SameValue()

2012-05-09 Thread Torsten Bonde Christiansen
ee Pascal Compiler version 2.6.0 (from: http://svn.freepascal.org/svn/fpc/tags/release_2_6_0) Compiler Date : 2012/01/19 Compiler CPU Target: x86_64 FPC Compiled with extra options "-g -gl -godwarfsets", Kind regards, Torsten Bonde Christiansen ___

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Torsten Bonde Christiansen
Well maybe ExportAll compiler feature should be suggested? But please try this unit Unit1; {$mode objfpc}{$H+} interface procedure proc1; stdcall; procedure proc2; stdcall; implementation procedure proc1; stdcall; begin writeln('hello'); end; exports proc1; procedure proc2; stdcall

Re: [fpc-pascal] Shared libries

2011-12-12 Thread Torsten Bonde Christiansen
On 2011-12-12 20:04, Jonas Maebe wrote: On 12 Dec 2011, at 19:56, nore...@z505.com wrote: procedure proc1; stdcall; begin writeln('hello'); end; exports proc1; procedure proc2; stdcall; begin writeln('hello 2'); end; exports proc2; end. Notice how I put exports in several places... It

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-12 00:48, nore...@z505.com wrote: Ok, thanks for clearifying that. I guess it's going to be a lot of include files instead... :) -Torsten. Why do you need include files in your case? You can put the units in the uses clause of your library. Because it is still going to give me a

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-11 23:30, Jonas Maebe wrote: On 11 Dec 2011, at 23:18, Torsten Bonde Christiansen wrote: So in the following example "foo" would not be visible (neither as "foo" nor "bar") to other program (eg. a C-program) unless I added an *exports* sec

Re: [fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
On 2011-12-11 22:57, ik wrote: On Sun, Dec 11, 2011 at 23:35, Torsten Bonde Christiansen mailto:t...@epidata.dk>> wrote: Hi. I'm trying to create a shared library (under linux) and I not sure what the difference between the modifier *export* and the section *expo

[fpc-pascal] Shared libries

2011-12-11 Thread Torsten Bonde Christiansen
7;t really help me. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE : RE : [fpc-pascal] Working Free Pascal android JNI example

2011-11-25 Thread Torsten Bonde Christiansen
On 2011-11-25 13:38, Ludo Brands wrote: /usr/lib/fpc/2.4.4/units/arm-linux/rtl/dllprt0.o: In function `_haltproc': androidprt0.as:(.text+0x0): multiple definition of `_haltproc' ./libandroidprt0.so:androidprt0.as:(.text+0x0): first defined here /usr/lib/fpc/2.4.4/units/arm-linux/rtl/dllprt0.o: In

Re: RE : [fpc-pascal] Working Free Pascal android JNI example

2011-11-25 Thread Torsten Bonde Christiansen
rsion repository) and there is clearly a conflict between two competing unit. But how do I resolve this? Regards, Torsten Bonde Christiansen. On 2011-08-11 11:54, Ludo Brands wrote: My main doubt here is if androidprt0.as is really required, which would mean that I can only produce android

Re: [fpc-pascal] Compilation error in crosscompiling lNet to arm-linux

2011-11-20 Thread Torsten Bonde Christiansen
On 2011-11-20 21:36, Jonas Maebe wrote: On 20 Nov 2011, at 21:30, Torsten Bonde Christiansen wrote: I get the following error when crosscompiling lNet to arm-linux. $ fpc -MObjFPC -Sgim -CX -O2 -Parm -gs -gl -vew -l -Fi../lib/sys -Fu../lib -Fu. -FUlib/arm-linux/ -dLNET_BASE -fPIC

[fpc-pascal] Compilation error in crosscompiling lNet to arm-linux

2011-11-20 Thread Torsten Bonde Christiansen
aborted Error: /usr/bin/ppcrossarm returned an error exitcode (normal if you did not specify a source file to be compiled) Is this a bug in the compiler? Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Location of fpvectorial

2011-11-10 Thread Torsten Bonde Christiansen
he source code is included but you are right that it is not compiled. On Thu, Nov 10, 2011 at 9:04 AM, Torsten Bonde Christiansen wrote: The wiki page states to download from lazarus trunk, but the example files there do no use the lazarus package, but rather the one from fpc. Please file a b

[fpc-pascal] Location of fpvectorial

2011-11-10 Thread Torsten Bonde Christiansen
s there do no use the lazarus package, but rather the one from fpc. Is it best to use the lazarus/components version or the fpc version? Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] Re: Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How? [SOLVED]

2011-08-09 Thread Torsten Bonde Christiansen
On 2011-08-09 12:59, Reinier Olislagers wrote: On 9-8-2011 12:21, Torsten Bonde Christiansen wrote: On 2011-08-09 10:46, Reinier Olislagers wrote: My pleasure - though I haven't finished yet& may run into things. It seems you're setting up a 32 bit environment. Both my Linu

Re: [fpc-pascal] Re: Cross Compiling from Linux to a Mac OS X 10.5 or 10.6 target. How? [SOLVED]

2011-08-09 Thread Torsten Bonde Christiansen
omeone have done this succesfully on a Ubuntu 10.04 x86_64 like my system. Kind regards, Torsten Bonde Christiansen ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-15 Thread Torsten Bonde Christiansen
On 2011-01-14 23:05, Max Vlasov wrote: On Fri, Jan 14, 2011 at 10:38 PM, Torsten Bonde Christiansen mailto:t...@epidata.dk>> wrote: Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling "inherited" on a method? Hmm, do

[fpc-pascal] Skipping an the "inherited" of an ancestor

2011-01-14 Thread Torsten Bonde Christiansen
Hi List. Is it possible to jump a couple of levels in the inherited hierarchy when calling "inherited" on a method? A small example of what i'm trying to achieve below (and don't mind the incomplete TB class implementation). Kind regards, Torste

Re: [fpc-pascal] evaluation of set constant

2010-12-23 Thread Torsten Bonde Christiansen
On 2010-12-22 14:50, Jonas Maebe wrote: On 22 Dec 2010, at 14:15, Torsten Bonde Christiansen wrote: Is it possible to create a constant of a set that is based on an evaluation of other constants? (using fpc 2.4.2) A basic case could look like this: type TMyType = (a, b, c ,d); TMyTypes

[fpc-pascal] evaluation of set constant

2010-12-22 Thread Torsten Bonde Christiansen
luation is possible. Kind regards, Torsten Bonde Christiansen. EpiData Association. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Detecting what is the linux distro

2010-10-11 Thread Torsten Bonde Christiansen
r way either to detect, because not everyone uses it. Any additional ideas ? Most distros also include their name in the kernel, so using "uname -a" could also give a hint. But AFAIK there is no common place where all distros store the name. Kind regards, T

Re: [fpc-pascal] Documentation differences...

2010-06-23 Thread Torsten Bonde Christiansen
On 2010-06-23 10:29, Graeme Geldenhuys wrote: Op 2010-06-23 10:15, Torsten Bonde Christiansen het geskryf: The official FPC documentation is: (http://www.freepascal.org/docs-html/rtl/) FPC does not show "skeleton" or partial documented units in it's documentatio

[fpc-pascal] Documentation differences...

2010-06-23 Thread Torsten Bonde Christiansen
exist one place and not the other. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Is static strings prosible?

2010-04-23 Thread Torsten Bonde Christiansen
a nil pointer, but something is wrong when it tries do dereference the reference pointer in fpc_ansistr_decr_ref. Should I report this is a bug or is static ansistrings not posible? Kind regards, Torsten Bonde Christiansen. { TBase } {$static on} TBase = class

Re: [fpc-pascal] FPClassChart

2010-04-22 Thread Torsten Bonde Christiansen
Michael Van Canneyt wrote: On Thu, 22 Apr 2010, Torsten Bonde Christiansen wrote: I get a runtime A/V trying to create a class chart from one of my source files. Can you isolate the problem a bit more ? The best I can give is the output when it crashes. If you wish I can put the

Re: [fpc-pascal] FPClassChart

2010-04-22 Thread Torsten Bonde Christiansen
$004864C6 line 713 of src/pparser.pp $0048BFD5 line 2301 of src/pparser.pp $004020AE line 569 of fpclasschart.pp $00403171 line 759 of fpclasschart.pp I hope it helps. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal mail

[fpc-pascal] FPClassChart

2010-04-22 Thread Torsten Bonde Christiansen
Hi List, Is the fpclasschart program still maintained? I get a runtime A/V trying to create a class chart from one of my source files. Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] Accessing static field using properties.

2010-04-12 Thread Torsten Bonde Christiansen
static field through a property. There is no documentation stating that this is im-/possible, so I'm not sure whether this is a bug or just me writing horrible code... ;) Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Cross compiling: "from linux to Darwin or Mac OS X"

2010-03-26 Thread Torsten Bonde Christiansen
all of our supported OS and CPU targets. Regards, Torsten Bonde Christiansen. Patrick Chevalley wrote: I try and give up. What I use now is a Mac virtual machine running on my Linux x64. It's too bad you have to turn to the dark side of the Internet for instruction on how to do

[fpc-pascal] Cross compiling: "from linux to Darwin or Mac OS X"

2010-03-25 Thread Torsten Bonde Christiansen
link to odcctools does not exist anymore, and searching the web for opendarwin/odcctools does not provide much help. So my question is if anyone have tried to do this recently and have a newbie guide on how to set this up. Kind regards, Torsten Bonde Christiansen

Re: [fpc-pascal] Subversion server making hickups...

2009-11-24 Thread Torsten Bonde Christiansen
Vincent Snijders wrote: The disks on svn2.freepascal.org was full, I removed some old files, can you retry? Great - working again! Thanks. -Torsten. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/lis

[fpc-pascal] Subversion server making hickups...

2009-11-24 Thread Torsten Bonde Christiansen
Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why can't 64bit FPC cross-compile 32bit

2009-11-09 Thread Torsten Bonde Christiansen
cross-compile to 32-bit linux and 32-bit windows on the same 64-bit linux machine. (that includes the FPC itself and Lazarus) There is a guide on the wiki here: http://wiki.freepascal.org/Cross_compiling Kind regards, Torsten Bonde Christiansen. ___ fpc-p

Re: [fpc-pascal] BNF grammar for fpc

2009-10-16 Thread Torsten Bonde Christiansen
power is not as good as a BNF grammar. There are some language constructs that is simply not posible with a LL(1) parser, when comparing to the LALR(1). I don't have the details with me right now, but have a decent book on compiler construction at home. Kind regards, - Torsten Bonde Christi

[fpc-pascal] Is svn2.freepascal.org down?

2009-10-09 Thread Torsten Bonde Christiansen
I cant get in contact with the repository on svn2.freepascal.org (no ping reply either). Can someone give it a kick again... Kind regards, Torsten Bonde Christiansen. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] Variants and Extended

2009-09-17 Thread Torsten Bonde Christiansen
Ok, Thanks for the answer. -Torsten. It compiles, but it is only 64 bits, like a double. type extended = double; You can check this at compile time by doing {$IFDEF FPC_HAS_TYPE_EXTENDED} Vincent ___ fpc-pascal maillist - fpc-pascal@lists.freep

  1   2   >