* * *

Author Topic: typ pas in tachart  (Read 346 times)

pk2

  • Newbie
  • Posts: 1
typ pas in tachart
« 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)

VTwin

  • Sr. Member
  • ****
  • Posts: 425
  • Former Turbo Pascal 3 user
Re: typ pas in tachart
« Reply #1 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.
“Talk is cheap. Show me the code.” Linus Torvalds

Lazarus 1.8.4, FPC 3.0.4
macOS 10.11.5 (32 bit Carbon, working on Cocoa) 
Windows 7 (64 bit)
Ubuntu 16.04.3 (64 bit)

wp

  • Hero Member
  • *****
  • Posts: 4743
Re: typ pas in tachart
« Reply #2 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?
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus