flat assembler
Message board for the users of flat assembler.

Index > Main > [solved] "Error: unexpected end of file"

Author
Thread Post new topic Reply to topic
retro



Joined: 12 Oct 2021
Posts: 47
retro 20 Feb 2022, 21:14
hi, i was using fasm for a while but then this error suddenly came up and i gave up on using it, but now i tried to try to use it again, but this same error appears in any, i repeat, ANY assembly file, except for the fasm source code, and so far i haven't found any solution on the internet. i'm using the latest version, 1.73.29, i was using 1.73.28 before but the same error was showing up, and i don't have the faintest idea of what's causing this error. i'm guessing using an older version would work, but i'm too lazy to try each version of fasm.
Post 20 Feb 2022, 21:14
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 1023
Location: Russia
macomics 20 Feb 2022, 22:28
Check that all blocks are closed correctly until the end of the source file (curly brackets are meant). The blocks closed by end <name> should be closed to the end of the entire source text. There may also be a \ character at the end of one of the source text files, but the line is incomplete.
Post 20 Feb 2022, 22:28
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 20 Feb 2022, 22:46
The easiest way to get the "error: unexpected end of file." is to have a trailing backslash on the last line
Code:
\ ; <--- error: unexpected end of file.    
Note the lack of any CR or LF. Then you will get the error.
Post 20 Feb 2022, 22:46
View user's profile Send private message Visit poster's website Reply with quote
retro



Joined: 12 Oct 2021
Posts: 47
retro 20 Feb 2022, 22:48
i already tried that, it didn't work either...
Post 20 Feb 2022, 22:48
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20430
Location: In your JS exploiting you and your system
revolution 20 Feb 2022, 22:53
That applies to all files in the build. So check all your included files also. And their sub-includes. etc.
Post 20 Feb 2022, 22:53
View user's profile Send private message Visit poster's website Reply with quote
retro



Joined: 12 Oct 2021
Posts: 47
retro 20 Feb 2022, 23:33
ah, nevermind, it was one of the include files, i probably changed something in it and then when i put the original include file it worked...
sorry for not realizing a stupid thing lol
Post 20 Feb 2022, 23:33
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8357
Location: Kraków, Poland
Tomasz Grysztar 21 Feb 2022, 08:37
This error is quite badly handled by fasm 1, I think I should make it consistent with how fasmg behaves.

Time to make a first new release this year.
Post 21 Feb 2022, 08:37
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.