flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
vid 06 Nov 2007, 23:07
erm, just to be sure... did you type "./fasm" instead of just "fasm"? second one searches in "/bin" directory
|
|||
![]() |
|
madmatt 06 Nov 2007, 23:31
Thanks vid! That worked. but I copied hello64.asm/hello64.exe to the main fasm directory and tried to compile it and gave me a "source file not found", how could that be?
![]() |
|||
![]() |
|
vid 07 Nov 2007, 00:19
if you have both FASM executable and source (hello64.asm) in current directory, then it should be simply:
Code: ./fasm hello64.asm just like in WinXP cmd.exe, you can use TAB key in console to finish path to file - this way you can check if path to file is okay |
|||
![]() |
|
LocoDelAssembly 07 Nov 2007, 00:22
And remember to add execution permission to the file (chmod +x exe-file).
|
|||
![]() |
|
madmatt 07 Nov 2007, 00:59
Thanks Vid and Locodelassembly, I've got everything to compile now. Does anybody have any 64-bit assembly examples of making a window?
![]() |
|||
![]() |
|
LocoDelAssembly 07 Nov 2007, 01:19
Yes, Feryno provided some http://flatassembler.net/examples/fasm_amd64_linux64_samples.tar.gz
Bazik provided some examples for GTK http://flatassembler.net/examples/gtk-examples.tar.gz , but these ones are for 32-bit. |
|||
![]() |
|
Raedwulf 07 Nov 2007, 06:17
|
|||
![]() |
|
madmatt 07 Nov 2007, 14:08
Thanks.
|
|||
![]() |
|
nocona 08 Nov 2007, 05:39
also if you want to execute fasm instead of ./fasm, you can add "." (single dot) to your PATH environment variable (e.g PATH="${PATH}:.") which means adds the current directory to the PATH environment variable.
|
|||
![]() |
|
f0dder 08 Nov 2007, 12:18
nocona wrote: also if you want to execute fasm instead of ./fasm, you can add "." (single dot) to your PATH environment variable (e.g PATH="${PATH}:.") which means adds the current directory to the PATH environment variable. I wouldn't suggest doing that, it's pretty bad practice. _________________ carpe noctem |
|||
![]() |
|
Raedwulf 08 Nov 2007, 14:17
Well mainly for the reason that if you want to execute fasm instead of ./fasm you can't unless you reset the PATH variable.
|
|||
![]() |
|
vid 08 Nov 2007, 14:21
wouldn't it be better to copy "fasm" to "bin\", instead of hacks like this?
|
|||
![]() |
|
madmatt 09 Nov 2007, 00:33
vid wrote: wouldn't it be better to copy "fasm" to "bin\", instead of hacks like this? So anything that is command line only, copy it to the bin directory and you won't have to type the './'? ![]() ![]() |
|||
![]() |
|
vid 09 Nov 2007, 01:26
yeah, on unix like systems, "everything has it's place", and "/bin" is place for executable binaries. Not just command line, all binaries.
in fact, there are more such directories, for different types of executable binaries: /bin, /sbin, /usr/bin, ... |
|||
![]() |
|
LocoDelAssembly 09 Nov 2007, 02:51
Check the Filesystem Hierarchy Standard for deep info about this.
|
|||
![]() |
|
Raedwulf 09 Nov 2007, 09:32
That's what makes unix based operating systems so nice -> its much more structured than windows.
|
|||
![]() |
|
f0dder 09 Nov 2007, 12:29
Raedwulf wrote: That's what makes unix based operating systems so nice -> its much more structured than windows. Until you look at different distros... _________________ carpe noctem |
|||
![]() |
|
nocona 11 Nov 2007, 04:05
Quote:
it just for convinience.. when i was new to linux, i tend to forget to type "./" in front of any program in my project dir. but anyway, the key here is the "PATH" environment variable.. if you have any non-standard place where you want to put your binaries, add them to the PATH variable. Windows has it also. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.