Recent

Author Topic: Unexpected end of file  (Read 665 times)

Milsa

  • Sr. Member
  • ****
  • Posts: 323
Unexpected end of file
« on: November 10, 2024, 06:45:59 pm »
Why?
I work with Lazarus 2.2.2, FPC 3.2.2, date 2022-05-15
This information is actual to: 28st Dec 2022

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11947
  • FPC developer.
Re: Unexpected end of file
« Reply #1 on: November 10, 2024, 06:46:50 pm »
No end. at the end of the file? Or some dos EOF character somewhere?

Milsa

  • Sr. Member
  • ****
  • Posts: 323
Re: Unexpected end of file
« Reply #2 on: November 10, 2024, 06:47:48 pm »
I added this unit to main post.
I work with Lazarus 2.2.2, FPC 3.2.2, date 2022-05-15
This information is actual to: 28st Dec 2022

Fibonacci

  • Hero Member
  • *****
  • Posts: 613
  • Internal Error Hunter
Re: Unexpected end of file
« Reply #3 on: November 10, 2024, 07:02:41 pm »
If you were using Lazarus, you would see that all the code is commented out.

rvk

  • Hero Member
  • *****
  • Posts: 6591
Re: Unexpected end of file
« Reply #4 on: November 10, 2024, 07:10:56 pm »
Check out line 11.

Code: Pascal  [Select][+][-]
  1. {**********************************************************}
  2.                                                                                 {
  3. {$F-,O-,A+,G+,R-,S-,I-,Q-,V+,B-,X+,T+,P-,D-,L-,Y-,N-,E-}
  4.  

You have a comment there !!!
Remove it.

/edit/ Ha. Fibonacci already found it.


Milsa

  • Sr. Member
  • ****
  • Posts: 323
Re: Unexpected end of file
« Reply #5 on: November 10, 2024, 07:39:37 pm »
Thank you. Free Pascal for DOS didn't see it.
I work with Lazarus 2.2.2, FPC 3.2.2, date 2022-05-15
This information is actual to: 28st Dec 2022

Milsa

  • Sr. Member
  • ****
  • Posts: 323
Re: Unexpected end of file
« Reply #6 on: November 17, 2024, 07:31:20 pm »
If you were using Lazarus, you would see that all the code is commented out.
I have a sub question: How do I set up Lazarus to compile for DOS go32v2? Lazarus have better editor.
I work with Lazarus 2.2.2, FPC 3.2.2, date 2022-05-15
This information is actual to: 28st Dec 2022

 

TinyPortal © 2005-2018