Re: [fpc-pascal] getting cross with the cross compiler

2017-10-08 Thread Sven Barth via fpc-pascal
Am 08.10.2017 01:51 schrieb :
> firstly may I take the opportunity to congratulate you on what have
managed to do in creating fpc and lazarus.  Despite what seems like a few
outstanding quirks it is an amazing achievement.

Note: Florian only developed FPC. Lazarus is done by a different though
sometimes intersecting team.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-08 Thread Sven Barth via fpc-pascal
Am 08.10.2017 06:39 schrieb "Mr Bee via fpc-pascal" <
fpc-pascal@lists.freepascal.org>:
>
> Hi,
>
> Is there any FPC command line option for writable constanst
directive {$J} or {$WRITEABLECONST} ?

No, there is not.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-08 Thread pascalX

On 08/10/17 08:02, Sven Barth via fpc-pascal wrote:
Am 08.10.2017 01:51 schrieb >:
 > firstly may I take the opportunity to congratulate you on what have 
managed to do in creating fpc and lazarus.  Despite what seems like a 
few outstanding quirks it is an amazing achievement.


Note: Florian only developed FPC. Lazarus is done by a different though 
sometimes intersecting team.


Regards,
Sven




OK, thanks for the correction.  Apologies to those on the Lazarus team, 
it's a substantial body of work and quite an achievement.


;)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] getting cross with the cross compiler

2017-10-08 Thread Tomas Hajny
On Sat, October 7, 2017 22:13, pasc...@piments.com wrote:


Hi,

 .
 .
> Can you offer any insights into what is going on with Lazarus not
> locating the system unit and friends.  As you acknowledge they are
> treated somewhat differently due to problems with the underlying
> platforms.
>
> I am wondering whether this enforced inconsistency with the generally
> well organised structure could be leading to the problem.
>
> It seems odd that fpc is finding them OK and Lazarus not.
>
> It seems that fedora are doing something a little different in terms of
> installation dirs, presumably a result of their way of providing
> multilib 32/64 functionality where they install 64b libs in /usr/lib64
> rather than /usr/lib.
>
> I am wondering whether this has highlighted some assumption implicit in
> the code about different version of libs being in the same place.
>
> Do you have any ideas why the fpc can find the system.ppu etc and not
> Lazarus?

Have you looked at FPC FAQ (in particular,
https://www.freepascal.org/faq.var#systemnotfound), or FPC documentation
(https://www.freepascal.org/docs-html/user/usersu7.html#x21-280003.1.2)?

FPC Wiki is an additional resource, there is some information related to
Lazarus as well - see
http://wiki.freepascal.org/Unit_not_found_-_How_to_find_units.

All of this might help you in finding differences; note that installation
packages created for specific Linux distributions may decide to modify the
default unit locations.

Hope this helps

Tomas


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-08 Thread Michalis Kamburelis
2017-10-08 9:03 GMT+02:00 Sven Barth via fpc-pascal
:
> Am 08.10.2017 06:39 schrieb "Mr Bee via fpc-pascal"
> :
>>
>> Hi,
>>
>> Is there any FPC command line option for writable constanst directive {$J}
>> or {$WRITEABLECONST} ?
>
> No, there is not.
>

There is my old feature request about it
https://bugs.freepascal.org/view.php?id=30344 :) You can monitor it.

Regards,
Michalis
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-08 Thread Marcos Douglas B. Santos
On Sun, Oct 8, 2017 at 1:38 AM, Mr Bee via fpc-pascal
 wrote:
> Hi,
>
> Is there any FPC command line option for writable constanst directive {$J}
> or {$WRITEABLECONST} ?
>
> Since I knew this directive, I always set it to {$J-} (because {$J+} is
> ridiculous). However, sometimes I forget to put it in to my source code. So,
> I'd like to put it in to a batch script that calls fpc with all the required
> compiler settings for all my programs. Unfortunately, I haven't found
> compiler option for this directive.
>
> Any help is appreciated. Thank you.

Most developers are using single .inc file that contains all
directives for the whole project.
You only need to remember to include this file in all units of your projects.

Regards,
Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] TBufDataset vs TClientDataset

2017-10-08 Thread Graeme Geldenhuys

Hi,

I read a couple of archived mailing list posts about TBufDataset, which 
from what I read is FPC's equivalent to TClientDataset.


That then begs the question... Why isn't it called TClientDataset in 
FPC? What happened to Delphi-compatibility?


Also, what's the difference between TBufDataset and TMemDataset? Aren't 
they both in-memory datasets? If so, why do we have two different 
components for the same thing?



Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] compiler option for $J directive

2017-10-08 Thread leledumbo via fpc-pascal
> There is my old feature request about it 
> https://bugs.freepascal.org/view.php?id=30344 :) You can monitor it.

No one seems to care to implement it, so if you badly need it:  sj.patch
  
Apply in compiler directory (please checkout r37430 at least), I only svn
diff there, not in the top level directory (I have modifications to certain
packages).



--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TBufDataset vs TClientDataset

2017-10-08 Thread Marcos Douglas B. Santos
On Sun, Oct 8, 2017 at 3:58 PM, Graeme Geldenhuys
 wrote:
> Hi,
>
> I read a couple of archived mailing list posts about TBufDataset, which from
> what I read is FPC's equivalent to TClientDataset.
>
> That then begs the question... Why isn't it called TClientDataset in FPC?
> What happened to Delphi-compatibility?

Good question...

> Also, what's the difference between TBufDataset and TMemDataset? Aren't they
> both in-memory datasets? If so, why do we have two different components for
> the same thing?

Yes, they are both in-memory datasets and, I believe, TMemDataSet came
first and TBufDataSet could be an improvement. Here ->
http://wiki.freepascal.org/How_to_write_in-memory_database_applications_in_Lazarus/FPC
says that TBufDataSet is a better choice.

Why two classes for the same thing? I have no idea.

More interesting links:
- 
http://lazarus.lazarus.freepascal.narkive.com/Fe8TZqtR/tbufdataset-tmemdataset-and-a-big-headache
- http://forum.lazarus.freepascal.org/index.php?topic=30454.0

Regards,
Marcos Douglas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal