Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-02

fcl-stl / thashset question

9 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Repucci

I'm attempting to use thashset from the fcl-stl unit.

It appears that fcl-stl is not compiled with the fpc that comes with Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32.

While fcl-stl is in the source, it is not found in the units directory tree. (this is also true of fpc-2.7.1.i386-win32 that I downloaded yesterday).

Any suggestions how I might get a version of fpc that includes fcl-stl? -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120226/d0478695/attachment.html>

Reply by email

Hans-Peter Diettrich
to John Repucci
Show quoted text 8 lines
I'm attempting to use thashset from the fcl-stl unit. It appears that fcl-stl is not compiled with the fpc that comes with Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. While fcl-stl is in the source, it is not found in the units directory tree. (this is also true of fpc-2.7.1.i386-win32 that I downloaded yesterday).

I have ghashset.ppu and .o in fcl-stl/units/i386-win32.

Any suggestions how I might get a version of fpc that includes fcl-stl?

IMO it's a Lazarus only problem. The Lazarus *fcl package* includes only *very* few fcl units. Try to add the required unit(s) directly to your project, and accept adding the recommended unit search path. You probably can remove the unit reference afterwards, when the added path is sufficient (untested). A proper solution should add all FCL units to the Lazarus fcl package, though.

DoDi

Reply by email

Mattias Gaertner
to Hans-Peter Diettrich
Show quoted text 5 lines
John Repucci schrieb: > I'm attempting to use thashset from the fcl-stl unit. > > It appears that fcl-stl is not compiled with the fpc that comes with > Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32.

2.6.1 does not install them.
2.7.1 does. At least under Linux and OS X.

I don't know why 2.6.1 does not install them. Maybe they were not stable. You could ask on the fpc list.

> While fcl-stl is in the source, it is not found in the units directory > tree. (this is also true of fpc-2.7.1.i386-win32 that I downloaded > yesterday).

Please create a bug report for fpc.

I have ghashset.ppu and .o in fcl-stl/units/i386-win32.

That's only the precompiled version.
He was asking about the installed version of the ppu file.

> Any suggestions how I might get a version of fpc that includes fcl-stl? IMO it's a Lazarus only problem.

No. What fpc installs and what no is entirely up to the FPC team.

The Lazarus *fcl package* includes only *very* few fcl units.

Yes, only those that register design time items in Lazarus.

Try to add the required unit(s) directly to your project, and accept adding the recommended unit search path. You probably can remove the unit reference afterwards, when the added path is sufficient (untested).

It would be better to fix this in the fpc packages.

A proper solution should add all FCL units to the Lazarus fcl package, though.

No.

Mattias

Reply by email

Alexander Shishkin
to Mattias Gaertner

27.02.2012 12:19, Mattias Gaertner ?????:

Show quoted text 16 lines
On Mon, 27 Feb 2012 06:18:59 +0100 Hans-Peter Diettrich wrote: > John Repucci schrieb: >> I'm attempting to use thashset from the fcl-stl unit. >> >> It appears that fcl-stl is not compiled with the fpc that comes with >> Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. 2.6.1 does not install them. 2.7.1 does. At least under Linux and OS X. I don't know why 2.6.1 does not install them. Maybe they were not stable. You could ask on the fpc list.

A bug, #19916, fixed in 2.7.1

Reply by email

John Repucci
Show quoted text 28 lines
Date: Mon, 27 Feb 2012 13:20:02 +0400 From: Alexander Shishkin Subject: Re: [Lazarus] fcl-stl / thashset question To: Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed 27.02.2012 12:19, Mattias Gaertner ?????: > On Mon, 27 Feb 2012 06:18:59 +0100 > Hans-Peter Diettrich wrote: > >> John Repucci schrieb: >>> I'm attempting to use thashset from the fcl-stl unit. >>> >>> It appears that fcl-stl is not compiled with the fpc that comes with >>> Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. > > 2.6.1 does not install them. > 2.7.1 does. At least under Linux and OS X. > > I don't know why 2.6.1 does not install them. Maybe they were not > stable. You could ask on the fpc list. > > A bug, #19916, fixed in 2.7.1

Bug #19916 was closed ~ 6 months ago.
I downloaded 2.7.1 yesterday and it did not include fcl-stl. I'll ask on the fpc list.
Thanks all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120227/92002d0e/attachment.html>

Reply by email

Sven Barth
to John Repucci
John Repucci wrote 34 lines
Date: Mon, 27 Feb 2012 13:20:02 +0400 From: Alexander Shishkin < <mailto:>> Subject: Re: [Lazarus] fcl-stl / thashset question To: <mailto:> Message-ID: < <mailto:>> Content-Type: text/plain; charset=UTF-8; format=flowed 27.02.2012 12:19, Mattias Gaertner ?????: > On Mon, 27 Feb 2012 06:18:59 +0100 > Hans-Peter Diettrich< <mailto:>> wrote: > >> John Repucci schrieb: >>> I'm attempting to use thashset from the fcl-stl unit. >>> >>> It appears that fcl-stl is not compiled with the fpc that comes with >>> Lazarus-0.9.31-35589-fpc-2.6.1-20120225-win32. > > 2.6.1 does not install them. > 2.7.1 does. At least under Linux and OS X. > > I don't know why 2.6.1 does not install them. Maybe they were not > stable. You could ask on the fpc list. > > A bug, #19916, fixed in 2.7.1 Bug #19916 was closed ~ 6 months ago. I downloaded 2.7.1 yesterday and it did not include fcl-stl. I'll ask on the fpc list. Thanks all.

I did a quick test by manually building and installing FPC 2.7.1 on i386-win32. There fcl-stl is included in the installation. But you are indeed right that it is not included in the snapshot download. Please file a bug report.

Regards,
Sven

Reply by email

John Repucci
Show quoted text 13 lines
From: Sven Barth I did a quick test by manually building and installing FPC 2.7.1 on i386-win32. There fcl-stl is included in the installation. But you are indeed right that it is not included in the snapshot download. Please file a bug report. Regards, Sven Done: bug #: 0021384 <http://bugs.freepascal.org/view.php?id=21384>

Sven (or others), can you point me to a reference document on how to build fpc on a windows system?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120227/446f3791/attachment.html>

Reply by email

Sven Barth
to John Repucci
John Repucci wrote 15 lines
From: Sven Barth < <mailto:>> I did a quick test by manually building and installing FPC 2.7.1 on i386-win32. There fcl-stl is included in the installation. But you are indeed right that it is not included in the snapshot download. Please file a bug report. Regards, Sven Done: bug #: 0021384 <http://bugs.freepascal.org/view.php?id=21384> Sven (or others), can you point me to a reference document on how to build fpc on a windows system?

Here for example: http://www.stack.nl/~marcov/buildfaq.pdf

But basically the following should be sufficient:
* I assume the source is located in %FPCSRC% and a 2.6 is installed in %FPCBIN% (it's also ok if it is in %PATH%). I further assume that you want to install 2.7.1 to %FPCDEST%
* open cmd.exe and navigate to %FPCSRC%
* if the 2.6 compiler is in %PATH%:
make all install INSTALL_PREFIX=%FPCDEST%
* if not:
make all install INSTALL_PREFIX=%FPCDEST% FPC=%FPCBIN%\i386-win32\fpc.exe

Then you copy %FPCBIN%\i386-win32\fpc.cfg to %FPCDEST%\i386-win32\ and adjust any paths in there so that they fit your new %FPCDEST%

That should be it. You can then call the compiler using %FPCDEST%\i386-win32\fpc.exe

Regards,
Sven

Reply by email