Recent

Author Topic: illegal expression  (Read 4056 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 8527
Re: illegal expression
« Reply #15 on: March 19, 2021, 03:23:08 pm »
what function?/
the tlength?
didnt intialize the var i and i assigned to the boolean var using a junk value
(cuz i didnt initialize the i)
but the problem of the illegal expression is still there

In that case give us the EXACT AND COMPLETE error message.

Quote
btw i also have the "impossible to find the unite" error even tho i checked multiple times and almost not much of difference between functionning ones
b4 i changed the names and it worked
now i change the names and still does not work

I suspect you're getting screwed by your development environment... I'm not sure that anybody else here uses that.

Can you duplicate the problem compiling from the command line? Have you checked what's in your fpc.cfg?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dseligo

  • Hero Member
  • *****
  • Posts: 1653
Re: illegal expression
« Reply #16 on: March 19, 2021, 03:26:58 pm »
using mypascal ide
In the screenshot it says that the error is in 'agga.pas' and you said that error is in the 'jack.pas'.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12634
  • FPC developer.
Re: illegal expression
« Reply #17 on: March 19, 2021, 03:33:07 pm »
using mypascal ide
In the screenshot it says that the error is in 'agga.pas' and you said that error is in the 'jack.pas'.

Moreover that is not the full compiler message, but some edits are made by the IDE. See if you can disable as much filtering as possible in the IDE's error window

achref

  • New Member
  • *
  • Posts: 12
Re: illegal expression
« Reply #18 on: March 19, 2021, 05:29:35 pm »
idk how to see full compiling errors
the ide does not offer much flexibility

achref

  • New Member
  • *
  • Posts: 12
Re: illegal expression
« Reply #19 on: March 19, 2021, 05:33:04 pm »
mark what ide u recommend besieds dev -pascal

achref

  • New Member
  • *
  • Posts: 12
Re: illegal expression
« Reply #20 on: March 19, 2021, 05:34:00 pm »
btw im sorry for wasting so much time

MarkMLl

  • Hero Member
  • *****
  • Posts: 8527
Re: illegal expression
« Reply #21 on: March 19, 2021, 06:02:23 pm »
mark what ide u recommend besieds dev -pascal

The standard FPC release comes with a text-mode IDE (fp), but most people use Lazarus... it's graphical rather than text based but generally speaking it's structured such that you won't get swamped by unwanted functionality.

I can't offer specific suggestions relating to getting it installed on Windows, but there's plenty of people who run that combination. However I suggest that if you decide to try it and have teething problems you start a separate thread with an appropriate subject line: the most useful people might not be reading this one.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

achref

  • New Member
  • *
  • Posts: 12
Re: illegal expression
« Reply #22 on: March 19, 2021, 06:17:49 pm »
thank you all for your help and time

 

TinyPortal © 2005-2018