Lazarus

Programming => Graphics and Multimedia => TAChart => Topic started by: pk2 on July 05, 2018, 02:13:14 am

Title: typ pas in tachart
Post by: pk2 on July 05, 2018, 02:13:14 am
I have this strange promlem.
I've download typ.pas and place it in numlib_fix beside spe.pas.
Lazarus doesn't find it.
What am I doing wrong? (Lazarus 1.6 in Linux)
Title: Re: typ pas in tachart
Post by: VTwin on July 05, 2018, 03:19:56 am
This needs more information. Are these in your project folder? If not, did you set the project paths? Usually Project > Add Editor File to Project works.
Title: Re: typ pas in tachart
Post by: wp on July 05, 2018, 09:23:50 am
@VTWin: When you expand the project's search path with the path to package sources you are calling for trouble with the "duplicate units" error. I know delphi does this, but Lazarus uses packages - just add the package to the requirements of a project in order to be able to use its units. No fiddling around with the unit path!

@pk2: Did you recompile the package TAChart? But probably this will not work anyway. "typ.pas" is the central declaration unit numlib used by all other numlib files. So, when you recompile the TAChart package you will also recompile typ.pas, and the compiler will find the other comipiled numlib units to be outdated and will try to compile them as well. But their sources will not be found. It should work when you copy the other numlib files to TAChart as well. But you should be aware: Any change that you make to sources coming with Lazarus will be gone when you update to a new version!

Why do you want to copy typ.pas into the TAChart package?
TinyPortal © 2005-2018