Recent

Author Topic: can't compile an application with TaChart  (Read 2772 times)

dutchincle

  • New Member
  • *
  • Posts: 20
can't compile an application with TaChart
« on: September 06, 2023, 02:15:16 am »
I'm getting a lot of error messages when trying to compile an application with a TaChart
I'm using fpc -v 3.2.2 and lazarus 2.2.6

I'm sure I am doiong something wrong, but I have no idea what

 the error messages are attached

thanks
bas

wp

  • Hero Member
  • *****
  • Posts: 12461
Re: can't compile an application with TaChart
« Reply #1 on: September 06, 2023, 07:12:30 pm »
I'm sure I am doiong something wrong, but I have no idea what
Me not either...

Are you able to compile any of the demo projects which come with TAChart (folder components/tachart/demo)?

dutchincle

  • New Member
  • *
  • Posts: 20
Re: can't compile an application with TaChart
« Reply #2 on: September 07, 2023, 01:49:38 am »
nope.. anything with a chart boms out with the errors listed..


dutchincle

  • New Member
  • *
  • Posts: 20
Re: can't compile an application with TaChart
« Reply #3 on: September 09, 2023, 04:09:44 pm »
I think I found the problem.
When you install lazarus "vanilla" everything works fine. When you compile the IDE as "Optimized IDE" the previously listed problems occur.

wp

  • Hero Member
  • *****
  • Posts: 12461
Re: can't compile an application with TaChart
« Reply #4 on: September 09, 2023, 04:51:00 pm »
Sorry, never worked with the "optimized IDE" (usually "normal IDE" or "Debugger IDE")...

But now I compiled it as "optimized IDE", loaded two of the TAChart demos ("basic", "charteditor") - and they run as usual. The options used for building my optimized IDE are "-O3 -g- -Xs". What are yours?

dutchincle

  • New Member
  • *
  • Posts: 20
Re: can't compile an application with TaChart
« Reply #5 on: September 09, 2023, 05:00:15 pm »
same here..

I'm on linux with a 6.4 kernel

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4541
  • I like bugs.
Re: can't compile an application with TaChart
« Reply #6 on: September 09, 2023, 08:46:22 pm »
The "Optimized IDE" does not affect how your own application is compiled and linked. FPC and ld are used for that, using options defined in your project.
A bug in FPC optimization could cause a subtle bug in Lazarus "Optimized IDE" but I don't know of any such issues with -O3 level.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: can't compile an application with TaChart
« Reply #7 on: September 10, 2023, 01:30:54 am »
Excuse me. I am sorry to interrupt you.

I will only add a very small extra information:

Topic: errors compiling application with TaChart  (Read 244 times)
Author: dutchincle
« on: September 08, 2023, 02:05:57 am »
https://forum.lazarus.freepascal.org/index.php/topic,64535.0.html

This topic [64513] is older and have more interactions and seems to be on its way towards a solution.

That topic [64535] is newer, has only reply #1 as extra information (that could be copied or moved), and duplicates this older topic [64513]:

Can that newer topic [64535] be closed or removed?

wp

  • Hero Member
  • *****
  • Posts: 12461
Re: can't compile an application with TaChart
« Reply #8 on: September 10, 2023, 03:09:25 pm »
Double posts... Yes, please remove the other topic (64535).

dutchincle

  • New Member
  • *
  • Posts: 20
Re: can't compile an application with TaChart
« Reply #9 on: September 11, 2023, 11:23:36 pm »
Sorry, my bad

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: can't compile an application with TaChart
« Reply #10 on: September 12, 2023, 12:19:46 am »
Double posts... Yes, please remove the other topic (64535).
I've just made an observation.

I myself can't remove that topic: I am neither moderator nor administrator here. :)

wp

  • Hero Member
  • *****
  • Posts: 12461
Re: can't compile an application with TaChart
« Reply #11 on: September 12, 2023, 12:47:35 am »
Go to the other thread, click on "Report to moderator" and write a short note that this is a duplicate post and you want to have it removed.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1106
Re: can't compile an application with TaChart
« Reply #12 on: September 12, 2023, 04:32:43 am »
Go to the other thread, click on "Report to moderator" and write a short note that this is a duplicate post and you want to have it removed.
Done. Thanks.

 

TinyPortal © 2005-2018