delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/02/05/03:31:06

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 70.69.206.158
From: irrdev <wizardspro AT yahoo DOT ca>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Compiling a kernel... a compiler error!
Lines: 18
Message-ID: <lJBxh.894439$1T2.246554@pd7urf2no>
Date: Mon, 05 Feb 2007 08:16:17 GMT
NNTP-Posting-Host: 64.59.144.74
X-Complaints-To: abuse AT shaw DOT ca
X-Trace: pd7urf2no 1170663377 64.59.144.74 (Mon, 05 Feb 2007 01:16:17 MST)
NNTP-Posting-Date: Mon, 05 Feb 2007 01:16:17 MST
Organization: Shaw Residential Internet
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

OK, I am compiling a home-brew kernel. At the beginning, it was all 
Assembly, and ld.exe performed perfectly for linking. However,when I 
added some standard c code, I got an error which I can't resolve. First 
of all, here are my calls. BTW, NASM is the Assembly compiler:


C:\djgpp\bin\gcc.exe -Wall -O -fstrength-reduce -fomit-frame-pointer 
-finline-functions -nostdinc -fno-builtin -I./include -c -o main.o main.c
C:\Osdever\NASM\nasm.exe -f aout -o start.o start.asm
C:\djgpp\bin\ld.exe -T link.ld -o kernel.bin start.o main.o

And here is the error from gcc.exe:
In file included from <command line>:1:
c:/djgpp/lib/gcc-lib/djgpp/3.1/djgpp.ver:1:25: sys/version.h: No such 
file or directory (ENOENT)

I can't figure it out, since I don't call version.h from ANYWHERE 
withing my code. Any ideas?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019