Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: unable to open include file `system.inc'

I am a noob trying to compile his 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 source, in case that makes any difference.

like image 415
mydoghasworms Avatar asked Jan 29 '13 13:01

mydoghasworms


1 Answers

Looks like you skipped the previous chapter - see section 11.5.5 Using an Include File. You just need to copy and paste the various defines etc there into your own system.inc.

like image 80
Paul R Avatar answered Sep 30 '22 22:09

Paul R