flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > BUG parsing path include in FASM.DLL

Author
Thread Post new topic Reply to topic
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode
Edit:2:No way to get %fasminc% or %include% var.env
/to revolution/ It is a bug !
------
The error can be reproduced simply in ASMEDIT+FASM.DLL demo.
Try to add, for example (but not to big files):

include "%include%\macro\if.inc" result error, but
include "c:\fasm\include\macro\if.inc" ok
------
Hallo All,
error resolving a %fasminc% environment var when
using FASM.DLL to compile.

When checking GetEnvironmentVariable for the calling process,it results
in a presence of fasminc variable = C:\fasm\include (all ok).

I have FASM.DLL in the current dir,with
a "test.asm" source starting in this way
Code:
format PE CONSOLE 4.0
entry start
 include '%fasminc%\win32a.inc' ;<-- line 3 raises error
...
    

both the functions
fasm_AssembleFile and fasm_Assemble
raise always a
FASMERR_FILE_NOT_FOUND = -101 error
on line 3 (from LINE_HEADER struct)

But if i resolve the path in fasminc manually,
all compiles good with both the functions.

hopcode


Last edited by hopcode on 21 Oct 2008, 20:40; edited 2 times in total
Post 18 Oct 2008, 20:56
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17716
Location: In your JS exploiting you and your system
revolution
Check that your %fasminc% does not already end with a backslash.
Post 18 Oct 2008, 22:39
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.