Hello World - No Output

Håvard Ostnes <[email protected]> Thu, 16 Feb 2012 12:05:15 +0000 (UTC)
Newsgroups gmane.comp.micro-kernel.l4.l4ka.general
Message-ID <[email protected]>
Hi!

I have spent the past two days on learning how to make a simple roottask "hello
world" application.

I can successfully compile the following code <hello.cc> file:

#include <l4io.h>

int main (void)
{
   
   bool hello = true;
   
   if (hello)
     {
	printf ("\nPlease select ipc type:\n");	
	return 0;
     }

}

My Makefile looks like this:
srcdir=        @srcdir@
top_srcdir=    @top_srcdir@
top_builddir=    @top_builddir@

include $(top_srcdir)/Mk/l4.base.mk

PROGRAM=    helloworld
PROGRAM_DEPS=    $(top_builddir)/lib/l4/libl4.a \
		 $(top_builddir)/lib/io/libio.a

SRCS=        hello.cc

LIBS+=        -ll4 -lio
LDFLAGS+=    -Ttext=$(ROOTTASK_LINKBASE)
CPPFLAGS+=    -I$(srcdir)/$(ARCH)

include $(top_srcdir)/Mk/l4.prog.mk


my menu.lst looks like this:

root (fd0)
default=0
timeout=3

title L4Ka::Pistachio
 kernel /kickstart
 module /x86-kernel
 module /sigma0
 module /helloworld
 

I guess there might be a problem somewhere, especially my hunch is on the
Makefile? (I am not a programmer by profession, but I really need to get a
working hello world going). Any help is appreciated!

best regards,
håvard