Message board for the users of flat assembler.
> Compiler Internals > BUG parsing path include in FASM.DLL
hopcode 18 Oct 2008, 20:56
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
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
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.
Last edited by hopcode on 21 Oct 2008, 20:40; edited 2 times in total
|18 Oct 2008, 20:56||
revolution 18 Oct 2008, 22:39
Check that your %fasminc% does not already end with a backslash.
|18 Oct 2008, 22:39||
< Last Thread | Next Thread >
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.