[syslinux] Testing COM32 Code

H. Peter Anvin hpa at zytor.com
Wed Jan 12 15:10:16 PST 2005


ganapathy murali krishnan wrote:
> How do I go about compiling COM32 code for linux?
> Looking at the Makefile in "com32/samples" I presume a "make hello.lo" 
> would generate a linux version of the code.
> However in my case "make hello.lo" generates the following error
> 
> -----SNIP--------
> gmurali at buda:samples$ make hello.lo
> gcc -W -Wall -O -g -I../libutil/include -c -o hello.lo hello.c
> hello.c:23: console.h: No such file or directory
> make: *** [hello.lo] Error 1
> -----END SNIP------
> 
> the file console.h is in "../include/console.h". If I add "-I../include" 
> to LNXCFLAGS, then the compilation goes OK. My kernel does not support 
> elf binaries so I am not able to execute it. Is there a way to generate 
> a.out binaries?
> 

a.out?!!  In this century?!  Surely you're jesting...

hello.lo is like hello.o, it's an unlinked file -- you want the .lnx file.

hello.c isn't clean for compiling under Linux, but look at fancyhello.c 
(the Linux file is fancyhello.lnx.)

	-hpa




More information about the Syslinux mailing list