3 307 File "TriGon.mpas" not found __Lib_TimeLord.mpas

General discussion on mikroPascal PRO for AVR.
Post Reply
Author
Message
elmar.faber
Posts: 15
Joined: 03 Jul 2014 11:43

3 307 File "TriGon.mpas" not found __Lib_TimeLord.mpas

#1 Post by elmar.faber » 08 Jul 2014 13:05

Hello,

I create a new Unit and use the function fabs():

Code: Select all

Function TimeLord_Position(Var tl : TTimeLord; lat, lon : Real) : Boolean;
Begin
  if (fabs(lon) > 180.0) Then Result := False;
  if (fabs(lat) >  90.0) Then Result := False;
  tl.latitude  := lat;
  tl.longitude := lon;
  Result := True;
End;

Now I get the following error:

159 303 Identifier "fabs" was not declared __Lib_TimeLord.mpas

If I try the same with the "Uses TriGon;" I get the error:

3 307 File "TriGon.mpas" not found __Lib_TimeLord.mpas

How can I solve my problem?

Best regards

Elmar Faber

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: 3 307 File "TriGon.mpas" not found __Lib_TimeLord.mpas

#2 Post by filip » 09 Jul 2014 14:32

Hi,

Please, can you attach here a minimal project that demonstrates this issue ?

Regards,
Filip.

elmar.faber
Posts: 15
Joined: 03 Jul 2014 11:43

Re: 3 307 File "TriGon.mpas" not found __Lib_TimeLord.mpas

#3 Post by elmar.faber » 10 Jul 2014 11:33

Hello,

I have solved the problem. First I create a new unit in the library folder
C:\Users\Public\Documents\Mikroelektronika\mikroPascal PRO for AVR\Uses\LTE64KW.
Hrere I get the error I described above.

Now I create a new folder under the project folder and add the path with the
"search path folder..." dialog to my project. Now it works great. :)

Best regards

Elmar

Post Reply

Return to “mikroPascal PRO for AVR General”