RE: [fpc-pascal] linking errors under OS X

2009-07-28 Thread Henrik Genssen
the -dev packages come with X-Code although you have to install X11 itself. It should be all on the DVD or you can download the apple website for free - although you need a free ADC account. -- Hinnack >reply to message: >date: 29.07.2009 08:27:20 >from: "Graeme Geldenhuys" >to: "FPC-Pascal use

Re: [fpc-pascal] linking errors under OS X

2009-07-28 Thread Peter W A Wood
Graeme Where do you get these for OS X? Try http://www.macports.org/ or http://www.finkproject.org/ Personally, I have found MacPorts easy to use. Regards Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.or

[fpc-pascal] linking errors under OS X

2009-07-28 Thread Graeme Geldenhuys
Hi, I'm helping somebody out, getting FPC fully installed under OS X. Currently the user can compile all the source code of fpGUI Toolkit, but gets the old "-lX11 linking error". In the case of Ubuntu Linux you would be required to install the libx11-dev package. He would also need the libxf

Re: [fpc-pascal] Is there a way to avoid class casting?

2009-07-28 Thread Graeme Geldenhuys
Horacio Jamilis wrote: Even if I create a descending class for each TLinkedObjectProperty... I will not be able to use them... Could you post the Interface section of your classes and mention what units they are in. Alternatively look at the tiOPF framework and the source code examples. The

Re: [fpc-pascal] Is there a way to avoid class casting?

2009-07-28 Thread Horacio Jamilis
Thanks for the answer but... the problem is more complicated... Even if I create a descending class for each TLinkedObjectProperty... I will not be able to use them... Because I have 1 class per unit, y can´t have references to the item class in the interfase of the new class, because this wa

Re: [fpc-pascal] $IF conditional compilation

2009-07-28 Thread Jonas Maebe
On 28 Jul 2009, at 16:56, Bee wrote: Rewriting the unit loading system isn't exactly a trivial task. I understand. I just wonder why this bug didn't got priority since it's pretty basic feature for pascal compiler. You cannot get bugs fixed in a project like FPC by "giving them priority".

Re: [fpc-pascal] Is there a way to avoid class casting?

2009-07-28 Thread Graeme Geldenhuys
Horacio Jamilis wrote: so, I can use... mylinkedproperty.obj.[prop] ... beeing [prop] any property of the object that is of class LinkedObjectClass, and avoiding to type TMyLinkeddObjectClass(mylinkedproperty.obj).[prop] ??? You can define TMyLinkeddObjectClass and override the property types

[fpc-pascal] Is there a way to avoid class casting?

2009-07-28 Thread Horacio Jamilis
Hi, I am building from some time a OPF, that is working fine for me, but I´d like to avoid the big amount of castings I am using... I have one class on each unit. Each class contains the properties that represent´s it :-) One property kind is TLinkedObjectProperty. This class has a property

Re: [fpc-pascal] $IF conditional compilation

2009-07-28 Thread Bee
> Rewriting the unit loading system isn't exactly a trivial task. I understand. I just wonder why this bug didn't got priority since it's pretty basic feature for pascal compiler. > No idea, sorry. Maybe adding a dummy constant declaration between the uses > clause and the {$if ...} expression wo

Re: [fpc-pascal] $IF conditional compilation

2009-07-28 Thread Jonas Maebe
On 28 Jul 2009, at 16:47, Bee wrote: The internal error is due to the fact that your {$if ...} construct appears right after your uses clause: http://bugs.freepascal.org/view.php?id=8611 So, it's a bug. Since 2007? :( Rewriting the unit loading system isn't exactly a trivial task. Thanks

Re: [fpc-pascal] $IF conditional compilation

2009-07-28 Thread Bee
> The internal error is due to the fact that your {$if ...} construct appears > right after your uses clause: http://bugs.freepascal.org/view.php?id=8611 So, it's a bug. Since 2007? :( Thanks for the hint. I'll find a workaround for that. Any suggestion? TIA. -- -Bee- ...making buzzes at http:

Re: [fpc-pascal] Lazarus

2009-07-28 Thread Graeme Geldenhuys
Jonas Maebe wrote: The fpc-pascal list is for getting help with using FPC and with programming in Pascal. Which is fair. Thanks for clarifying. I will not silently discard other messages in this thread, but I will reject them (so you'll get a bounce). Unfortunately I already sent anoth

Re: [fpc-pascal] Lazarus

2009-07-28 Thread Jonas Maebe
On 28 Jul 2009, at 15:40, Graeme Geldenhuys wrote: Jonas Maebe wrote: Yes, indeed. This topic is not suitable for this list, I beg to differ The original poster is not happy with Lazarus, so this list is probably a good place to ask for alternatives. Well, that's how I understood it.

Re: [fpc-pascal] Lazarus

2009-07-28 Thread Graeme Geldenhuys
Jonas Maebe wrote: Yes, indeed. This topic is not suitable for this list, I beg to differ The original poster is not happy with Lazarus, so this list is probably a good place to ask for alternatives. Well, that's how I understood it. I would not imagine the Lazarus mailing list being

Re: [fpc-pascal] Lazarus

2009-07-28 Thread Jonas Maebe
On 28 Jul 2009, at 15:00, Henry Vermaak wrote: 2009/7/28 Brian Prentice : Lazarus has not met its goal of 'write once and compile and run anywhere' and is taking far too long to develop. Should it be abandoned and replaced with a new graphical user interface library based on the Java Swing

Re: [fpc-pascal] $IF conditional compilation

2009-07-28 Thread Jonas Maebe
On 28 Jul 2009, at 14:42, Bee wrote: In another unit which uses the above unit, I want to have conditional compilation based on the above constant... {$IF AValue} Do something... {$ELSE} Do something else... {$IFEND} I know it's possible in Delphi. But, is it possible in FPC? Using the ab

Re: [fpc-pascal] Lazarus

2009-07-28 Thread Michael Van Canneyt
On Tue, 28 Jul 2009, Brian Prentice wrote: Lazarus has not met its goal of 'write once and compile and run anywhere' and is taking far too long to develop. Should it be abandoned and replaced with a new graphical user interface library based on the Java Swing toolkit? I would be interested

Re: [fpc-pascal] Lazarus

2009-07-28 Thread Henry Vermaak
2009/7/28 Brian Prentice : > Lazarus has not met its goal of 'write once and compile and run anywhere' > and is taking far too long to develop.  Should it be abandoned and replaced > with a new graphical user interface library based on the Java Swing toolkit? >  I would be interested in your commen

[fpc-pascal] Lazarus

2009-07-28 Thread Brian Prentice
Lazarus has not met its goal of 'write once and compile and run anywhere' and is taking far too long to develop. Should it be abandoned and replaced with a new graphical user interface library based on the Java Swing toolkit? I would be interested in your comments on this matter. Brian

[fpc-pascal] $IF conditional compilation

2009-07-28 Thread Bee
Hi all, Say I had a constant declared in a unit... const AValue = true; In another unit which uses the above unit, I want to have conditional compilation based on the above constant... {$IF AValue} Do something... {$ELSE} Do something else... {$IFEND} I know it's possible in Delphi. Bu

Re: [fpc-pascal] Question about fcl-image package

2009-07-28 Thread Michael Van Canneyt
On Tue, 28 Jul 2009, James Buren wrote: I've looked through the source of this thing and the means it has for scaling an image does not appear to be anti-aliased as I would require for my usage which is for icon scaling to a consistent dimension. From what I can tell, a C library called Imlib2

[fpc-pascal] Question about fcl-image package

2009-07-28 Thread James Buren
I've looked through the source of this thing and the means it has for scaling an image does not appear to be anti-aliased as I would require for my usage which is for icon scaling to a consistent dimension. From what I can tell, a C library called Imlib2 appears to provide what I need, but fcl-imag