flat assembler
Message board for the users of flat assembler.
Index
> Windows > FASM Arguments help |
Author |
|
FrozenKnight 16 Oct 2011, 05:26
In your fASM directory there is a file FASMW.INI in it you need to place the following lines
Code: [Environment] Include=C:\fASM\INCLUDE fasminc=C:\fASM\INCLUDE Note i have fasminc there for older fasm programs, it's kind of depreciated now. you can use all the default includes with the following syntax. Code: include 'win32a.inc' Note this is covered in the FASM.PDF that is in the root dir with FASM, and in the documentation section on the main site. |
|||
16 Oct 2011, 05:26 |
|
NanoBytes 16 Oct 2011, 19:59
See, except that only works with FASMW.exe, the GUI. I am running my programs from the command line, any help?
|
|||
16 Oct 2011, 19:59 |
|
addes3 16 Oct 2011, 23:17
Set the environment variable INCLUDE to fasm's include directory.
|
|||
16 Oct 2011, 23:17 |
|
NanoBytes 17 Oct 2011, 00:43
That would work except that when the person downloads my program(it comes with fasm) they could download it anywhere, and then move it as many times as they want. I figured a way around it, thanks anyway though
|
|||
17 Oct 2011, 00:43 |
|
AsmGuru62 17 Oct 2011, 14:43
I had same issue with running FASM as an internal compiler in FASM Writer. I ran it in a separate thread which calls CreateProcess and invokes FASM.EXE that way. So, CreateProcess has a parameter called lpEnvironment. All I had to do is supply the INCLUDE value inside that parameter and FASM was assembling fine.
|
|||
17 Oct 2011, 14:43 |
|
Enko 17 Oct 2011, 19:50
I saw some codes using a local enviroment variable 'fasminc'
This way, to access the includes: '%fasminc%/api/win32a.inc' |
|||
17 Oct 2011, 19:50 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.