flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > %fasminc% is deprecated

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20309
Location: In your JS exploiting you and your system
revolution 16 Dec 2010, 13:15
sleepsleep wrote:
i wrote something lately.
http://intoai.blogspot.com
Note that fasm uses the "include" name, not "fasminc".
Post 16 Dec 2010, 13:15
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 16 Dec 2010, 13:45
Unfortunatelly...
Post 16 Dec 2010, 13:45
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12749
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 16 Dec 2010, 17:23
hahaha. I think no harm with fasminc right?
Just dont want to be same like c..
Post 16 Dec 2010, 17:23
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20309
Location: In your JS exploiting you and your system
revolution 16 Dec 2010, 23:16
sleepsleep wrote:
hahaha. I think no harm with fasminc right?
Well it doesn't work with "fasminc" unless you change the name in "tables.inc" and recompile fasm/w
Post 16 Dec 2010, 23:16
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12749
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 16 Dec 2010, 23:46
revo, huhuhu, what doesn't work?
Post 16 Dec 2010, 23:46
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20309
Location: In your JS exploiting you and your system
revolution 16 Dec 2010, 23:54
fasm won't be able to find the includes. fasm only looks for includes from the "INCLUDE" environment variable. "FASMINC" is wrong because no program is looking there.
Post 16 Dec 2010, 23:54
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12749
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 17 Dec 2010, 00:08
u mean fasm assembler or the provided fasm editor?
I am kinda confuse...
Post 17 Dec 2010, 00:08
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20309
Location: In your JS exploiting you and your system
revolution 17 Dec 2010, 00:21
This only affects the assembler. But the editor (FASMW) uses the assembler also.

If you don't believe me, then just try it. Remove all the fasm paths from your "INCLUDE" variable and use only "FASMINC" and watch as the assembler complains about not being able to find WIN32AX.INC.
Post 17 Dec 2010, 00:21
View user's profile Send private message Visit poster's website Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 12749
Location: ˛                             ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣Posts: 0010456
sleepsleep 17 Dec 2010, 04:51
i don't have "INCLUDE" environment variables.
and i use only the defined "FASMINC", and it works....

and i really confuse right now,,, huhuuu
Post 17 Dec 2010, 04:51
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20309
Location: In your JS exploiting you and your system
revolution 17 Dec 2010, 06:13
Perhaps all of your files are in the same folder. Put your asm file in a different folder and test.

Anyhow, look at "TABLES.INC" and you will see the name of the environment variable.
Post 17 Dec 2010, 06:13
View user's profile Send private message Visit poster's website Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 138
SFeLi 17 Dec 2010, 06:56
sleepsleep wrote:
i don't have "INCLUDE" environment variables.
and i use only the defined "FASMINC", and it works....

and i really confuse right now,,, huhuuu

You're using include "%fasminc%/win32a.inc". Fasm expands environment variables and that's why it works. Revolution is talking about include 'win32a.inc' case. Don't you think it is much simpler?
Post 17 Dec 2010, 06:56
View user's profile Send private message Reply with quote
Tyler



Joined: 19 Nov 2009
Posts: 1216
Location: NC, USA
Tyler 17 Dec 2010, 06:58
Couldn't you just use fix to define fasminc as include, or is include processed b4 fix?
Post 17 Dec 2010, 06:58
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 17 Dec 2010, 08:40
Hm, it is strange to have "INCLUDE" environment variable hard coded in the source. I didn't noticed it till now...

It is not documented as well:

Quote:
The quoted path can contain environment variables enclosed within %
characters, they will be replaced with their values inside the path, both the
\ and / characters are allowed as a path separators. If no absolute path
is given, the file is first searched for in the directory containing file which
included it and when it’s not found there, in the directory containing the
main source file (the one specified in command line). These rules concern
also paths given with the file directive.


Note1: The hard coded "%include%" does not concerns "file" directive.
Note2: This topic turned to the "compiler internals" forum section... Smile
Post 17 Dec 2010, 08:40
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20309
Location: In your JS exploiting you and your system
revolution 17 Dec 2010, 09:30
Tyler wrote:
Couldn't you just use fix to define fasminc as include, or is include processed b4 fix?
No. %include% is implicit and hidden, you can't fix invisible stuff.
Post 17 Dec 2010, 09:30
View user's profile Send private message Visit poster's website Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 138
SFeLi 17 Dec 2010, 09:54
JohnFound, it is documented in 1.1.1 System requirements.
Post 17 Dec 2010, 09:54
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 17 Dec 2010, 10:50
SFeLi wrote:
JohnFound, it is documented in 1.1.1 System requirements.


No, it is not: http://flatassembler.net/docs.php?article=manual#1.1.1
Post 17 Dec 2010, 10:50
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
SFeLi



Joined: 03 Nov 2004
Posts: 138
SFeLi 17 Dec 2010, 11:10
Hmm. I was talking about a PDF from Win32 package. Didn't know that there are differences in documentation. Confused
FASM.pdf wrote:
The example source provided with this version require you have environment variable INCLUDE set to the path of the include directory, which is the part of flat assembler package.
[skip]
If you don’t define the INCLUDE environment variable properly, you will have to manually provide the full path to the Win32 includes in every program you want to compile.
Post 17 Dec 2010, 11:10
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 17 Dec 2010, 11:32
SFeLi wrote:
Hmm. I was talking about a PDF from Win32 package. Didn't know that there are differences in documentation. Confused


Neither I. But, the text from 1.1.1 means (for me) simply that all examples use "%include%" environment variable in it's sources. This text tells nothing about the behaviour of "include" directive, that uses %include% as it's default directory, even if the variable %include% does not exists in the source.

Anyway, we have to wait a little for some comment from Tomasz.
Post 17 Dec 2010, 11:32
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
shoorick



Joined: 25 Feb 2005
Posts: 1614
Location: Ukraine
shoorick 17 Dec 2010, 13:57
in winasm studio i made %FASMINC% optionally autogenerated from path to fasm.exe. you can do the same in fasmw (or other IDE) to not spend much time on this question Wink if you will refuse of FASMINC, anyway you will meet it all the time in various sources of other authors, so what you will prefer? to refuse of them? to edit all of them? or to be able to ignore this difference forever? Wink

regards!
Post 17 Dec 2010, 13:57
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 17 Dec 2010, 14:17
IIRC, FASMW takes value for INCLUDE from some INI file.
Post 17 Dec 2010, 14:17
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< 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.