flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > INCLUDE environment variable

Author
Thread Post new topic Reply to topic
Isolemma



Joined: 06 Jan 2023
Posts: 2
Isolemma 06 Jan 2023, 20:38
I just started using FASM on windows.

With the IDE FASMW, it all works fine; but when I want to use it from command line, I encounter the issue of include file path.

The solution seems to be adding a system environment variable called "INCLUDE".
What I find inconvenient is that it must be a system environment variable - neither user environment variable nor process environment variable works.

For me it would be better to allow a process environment variable, so that one can set with "set INCLUDE=..." and not leaving anything in the registry.

Is there any particular reason to allow only a system environment variable? Or how can I set it to the way I want?
Post 06 Jan 2023, 20:38
View user's profile Send private message Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 819
Location: Russia
macomics 06 Jan 2023, 20:53
make.bat:
Code:
set INC=%INCLUDE%
set INCLUDE=C:\FASM\INCLUDE\;%INCLUDE%
fasm %1 %2 %3 %4 %5 %6 %7 %8 %9
set INCLUDE=%INC%
set INC=    
Post 06 Jan 2023, 20:53
View user's profile Send private message Reply with quote
Isolemma



Joined: 06 Jan 2023
Posts: 2
Isolemma 06 Jan 2023, 21:22
Thanks for the fast reply.
I just tested and it now works fine!

Not sure why it didn't before, but anyway ...
Post 06 Jan 2023, 21:22
View user's profile Send private message 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-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.