Fatal: unable to open file `system.inc '

I am noob trying to compile my first Assembler program on FreeBSD using the following guide: http://www.freebsd.org/doc/en/books/developers-handbook/x86-first-program.html

When I run nasm -f elf hello.asm, I get the following error:

hello.asm:1: fatal: unable to open include file 'system.inc'

Admittedly, I did not install nasm from the ports collection, but compiled it from the source, if that matters.

+5
source share
1 answer

It looks like you skipped the previous chapter - see section 11.5.5 Using the Include File . You just need to copy and paste various definitions, etc. On your own system.inc.

+5
source

All Articles