Dark Bit Factory & Gravity

PROGRAMMING => Other languages => ASM => Topic started by: Clyde on September 17, 2006

Title: Compile / Run Issues with FASM
Post by: Clyde on September 17, 2006
Im using the IDE with Flat Assembler version 1.67.8. And have tried numerous times to try and Compile & Run the example sources. But every time it tells me file not found with any includes that are present; of which they are as I've seen them in the directory structure of FASM. Same also applies using the Fresh IDE.

What do I need to do to get them to compile and run correctly? Or are there other headers / libraries and such like that I need to download from someplace?

Cheers and many thanks,
Clyde.
Title: Re: Compile / Run Issues with FASM
Post by: Rbz on September 17, 2006
Add those 2 lines in the end of your FASMW.INI file
[Environment]
fasminc = c:\fasm\include



Ps:  c:\fasm\includeÃ,  --> FASM path instalation.

Next, addÃ,  %fasminc%\ path to the examples that you want to run.

Example:


; example of simplified Win32 programming using complex macro features

include '%fasminc%\win32ax.inc'

.code

Ã,  start:
Ã,  Ã,  Ã,  Ã,  invokeÃ,  MessageBox,HWND_DESKTOP,"Hi! I'm the example program!","Win32 Assembly",MB_OK
Ã,  Ã,  Ã,  Ã,  invokeÃ,  ExitProcess,0

.end start
Ã,  

Title: Re: Compile / Run Issues with FASM
Post by: Clyde on September 17, 2006
Thanks mate. How did you discover / find out that solution dude?


Cheers,
Clyde.
Title: Re: Compile / Run Issues with FASM
Post by: Rbz on September 17, 2006
Quote from: Clyde on September 17, 2006
Thanks mate. How did you discover / find out that solution dude?

Searching here -->  http://board.flatassembler.net/index.php