Recent

Author Topic: virtualDBGrid - problems compiling ...  (Read 5031 times)

IPguy

  • Sr. Member
  • ****
  • Posts: 385
virtualDBGrid - problems compiling ...
« on: December 30, 2011, 10:00:58 pm »
I just downloaded the svn containing virtualDBGrid (from http://code.google.com/p/luipack/source) and attempted to install the package, but am having problems getting it to compile.

The 2nd line produces the below error messages:
Code: [Select]
type
  TIntegerList = specialize TFPGList <Integer>;     

Quote
C:\Laz\32432\lazarus\components\virtualdbgrid\VirtualDBGrid.pas(740,29) Error: Identifier not found "specialize"
C:\Laz\32432\lazarus\components\virtualdbgrid\VirtualDBGrid.pas(740,29) Error: Error in type definition
C:\Laz\32432\lazarus\components\virtualdbgrid\VirtualDBGrid.pas(740,29) Fatal: Syntax error, ";" expected but "identifier TFPGLIST" found

I do have the required packages (lclextensions, virtualtreeview, lcl) loaded and working.

Any suggestions?

0.9.31-32432-2.5.1,win32-Vista

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: virtualDBGrid - problems compiling ...
« Reply #1 on: December 30, 2011, 10:45:51 pm »
Seems your compiler version does not like generics.

Using fpc 244 without problems

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: virtualDBGrid - problems compiling ...
« Reply #2 on: December 31, 2011, 03:09:40 am »
Odd.  the version of 2.5.1 [2011/12/30] included with today's Laz snapshot does not like that line.
There are already several reports of generic issues with fpc, but I'll add one more bug report.
Thanks.

edit: an "fpc" bug report, not a laz bug report.
« Last Edit: December 31, 2011, 03:14:20 am by IPguy »

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: virtualDBGrid - problems compiling ...
« Reply #3 on: December 31, 2011, 10:01:35 am »
Try using fpc 260rc or fpc 244, the official releases

LuizAmérico

  • Sr. Member
  • ****
  • Posts: 457
Re: virtualDBGrid - problems compiling ...
« Reply #4 on: December 31, 2011, 02:46:10 pm »
Update the svn and try again

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: virtualDBGrid - problems compiling ...
« Reply #5 on: December 31, 2011, 06:13:09 pm »
Luiz,
Thank you.  It now compiles.

Should I see a component icon for it in the component tab someplace?

The virtualdbgrid_package.pas does not include a RegisterUnit line, but it's CompilerOptions does say "RunAndDesignTime".

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: virtualDBGrid - problems compiling ...
« Reply #6 on: January 01, 2012, 03:26:56 am »
re: virtualdbgrid icon - the icon is finally showing up.

I did the following:
- removed the old version of Laz
- added a RegisterUnit line to the virtualdbgrid_package.pas file
- exported virtualdbgrid folder from the svn folder to my working laz/component folder.

The next issue I had was three errors (see below) when I loaded "megademo", which I resolved by removing those properties from the Umegademo.lfm file.

Eror reading NTB.ShowTabs: Unknown property: "ShowTabs"
Error reading Page1.Caption: Unknown property: "Caption"
Error reading Page2.Caption: Unknown property: "Caption"

Luiz, thanks for the demo program.

 

TinyPortal © 2005-2018