Recent

Author Topic: Generic class for class reference list  (Read 13159 times)

sergei_gagarin

  • New Member
  • *
  • Posts: 12
Re: Generic class for class reference list
« Reply #15 on: March 07, 2017, 06:58:55 pm »
If I copy fgl.pp and include it to my project, then I got correct error message:

fgl.pp(907,18) Error: Only class methods, class properties and class variables can be referred with class references

But when I use installed fgl, then no line number again.

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Generic class for class reference list
« Reply #16 on: March 07, 2017, 07:31:25 pm »
Then the path to the sources is incorrect. Try from the menu Tools|Rescan fpc source directories
objects are fine constructs. You can even initialize them with constructors.

ASerge

  • Hero Member
  • *****
  • Posts: 2499
Re: Generic class for class reference list
« Reply #17 on: March 07, 2017, 07:34:56 pm »
Use attachments and other options, select your screenshot and post.
Can you both post exact versions of  laz, fpc and gdb...
Thank you. Here

sergei_gagarin

  • New Member
  • *
  • Posts: 12
Re: Generic class for class reference list
« Reply #18 on: March 07, 2017, 07:36:16 pm »
Then the path to the sources is incorrect. Try from the menu Tools|Rescan fpc source directories

All the same.
I have a single copy of Lazarus on PC.

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Generic class for class reference list
« Reply #19 on: March 07, 2017, 08:31:14 pm »
That option is only necessary if one of the FPC sources is changed. That can happen by accident. In that case the ide can not find it in the cache.
If you didn't do that, AND you did a rescan I wonder why it works if you make a local copy to the fgl file.
I simply can't replicate it.
I really need to know:
- Exact Lazarus version
- Exact FPC version If trunk, with revision number
- Exact GDB version and mingw or cygwin or from the FPC distribution

ASerge gave me the first two but not the gdb version,you gave me basically nothing yet.

This could well be a GDB issue and not a Lazarus or FPC one... That's the point.. See?
« Last Edit: March 07, 2017, 09:51:51 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

sergei_gagarin

  • New Member
  • *
  • Posts: 12
Re: Generic class for class reference list
« Reply #20 on: March 07, 2017, 10:29:57 pm »
Indeed it's very strange. How it can be related to gdb ?
Compiler should report error and it's location.
GUI uses this information to find the source file.
But compiler doesn't show line number in this case (I tried also in command line), so it's a problem either in compiler or in precompiled unit.
I recompile fpl.pp manually (entered to C:\lazarus\fpc\3.0.0\source\rtl\objpas and executed
"C:\lazarus\fpc\3.0.0\bin\x86_64-win64\fpc.exe fgl.pp") and replaced old object files (fgl.ppu, fgl.o) in C:\lazarus\fpc\3.0.0\source\rtl\objpas.
After that I can see line number in error message.
It seems that system units were compiled with some wrong flags ?

My system info:
Lazarus 1.6.2 (2016-12-08) - not trunk
FPC: 3.0.0 [2016/11/12] for x86_64
SVN: 53354
GDB (mingw): 7.3.50.20110510-cvs
Windows 7 64-bits

ASerge

  • Hero Member
  • *****
  • Posts: 2499
Re: Generic class for class reference list
« Reply #21 on: March 08, 2017, 05:14:01 pm »
ASerge gave me the first two but not the gdb version,you gave me basically nothing yet.
This could well be a GDB issue and not a Lazarus or FPC one... That's the point.. See?
Lazarus 1.6.4 (2017-02-27)
FPC: 3.0.2 [2017/02/27] for x86_64
SVN: 54278
GNU gdb (GDB) 7.3.50.20110510-cvs
Windows 7 x64

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Generic class for class reference list
« Reply #22 on: March 08, 2017, 05:19:41 pm »
You need to recompile whole FPC RTL with debug lineinfo enabled.

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Generic class for class reference list
« Reply #23 on: March 08, 2017, 05:21:36 pm »
I am at GDB 7.7.1 (on both platforms: windows and Linux) which is not even current stable.... Are you both serious? That's a really old GDB. Even Debian current is at 7.7+ and Debian always lags...
« Last Edit: March 08, 2017, 05:31:56 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Generic class for class reference list
« Reply #24 on: March 08, 2017, 05:22:57 pm »
You need to recompile whole FPC RTL with debug lineinfo enabled.
Both of them do have just one ear,,, Let's call them Vincent.

To Vincent,

Well.. If you  do not keep your software  up-to-date you will run into a lot of trouble...
This has nothing  to do with FPC or Lazarus, this is just noobs with GDB and are not likely to read any documentation, at all. ( >:() >:D >:D >:D.
« Last Edit: March 08, 2017, 05:33:07 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Generic class for class reference list
« Reply #25 on: March 08, 2017, 05:50:37 pm »
Both of you, install proper GDB's. Some specific FPC related bugs have been fixed. You should always update  your mingw's and / or cygwyn's. too.
Problems disappear... (And I tested that for the noob platform 10.1 and cygwin and cygwin64...!!! be warned!)
objects are fine constructs. You can even initialize them with constructors.

sergei_gagarin

  • New Member
  • *
  • Posts: 12
Re: Generic class for class reference list
« Reply #26 on: March 08, 2017, 06:08:39 pm »
Sorry for the disturbance. I thought that there are competent experts on this forum.

J-G

  • Hero Member
  • *****
  • Posts: 1048
Re: Generic class for class reference list
« Reply #27 on: March 08, 2017, 08:18:39 pm »
Sorry for the disturbance. I thought that there are competent experts on this forum.
That attitude will cause the competent experts (of which there are many) to ignore any request you make for assistance!
« Last Edit: March 08, 2017, 08:20:16 pm by J-G »
FPC 3.0.0 - Lazarus 1.6 &
FPC 3.2.2  - Lazarus 2.2.0 
Win 7 Ult 64

Thaddy

  • Hero Member
  • *****
  • Posts: 19268
  • Glad to be alive.
Re: Generic class for class reference list
« Reply #28 on: March 08, 2017, 08:26:29 pm »
Sorry for the disturbance. I thought that there are competent experts on this forum.
No! just make sure you have a better and more recent GDB. Do something useful. Install a recent version.
If Debian Jessie says it's 7.7.1. then everything else is a dinosaur... (sad but true)
Both of you lag a good couple of GDB versions behind. The real current GDB is 7.12 or higher

I Really can't help you if you insist on not using current software... Understand...
Your GDB versions are simply not acceptable for testing.
I may also expect at least a little competence from you as you are impostering yourself as not a noob.
<which both of you are! remember! Cocky, but sad, like I was 25 years ago... >:D > So shut up and install a proper GDB and THEN report back...
Without a current GDB you  are both talking from somewhere behind in your trousers. Clear?


I am still trying to  help. O:-)
« Last Edit: March 08, 2017, 08:39:28 pm by Thaddy »
objects are fine constructs. You can even initialize them with constructors.

ASerge

  • Hero Member
  • *****
  • Posts: 2499
Re: Generic class for class reference list
« Reply #29 on: March 09, 2017, 06:28:23 pm »
Both of you, install proper GDB's. Some specific FPC related bugs have been fixed. You should always update  your mingw's and / or cygwyn's. too.
Problems disappear...
First, from: https://sourceforge.net/projects/lazarus/files/Lazarus Windows 64 bits/Alternative GDB/GDB 7.7/
Quote
The Lazarus installers include a version of GDB.
    All 64 bit Lazarus 1.4 releases include GDB 7.3.50
    All 64 bit Lazarus 1.6 releases include GDB 7.3.50
It is recommended to use the GDB version that comes with the Lazarus installer.
Second: the same issue with GNU gdb (GDB) 7.7

 

TinyPortal © 2005-2018