Re: Iostream and string in L4Re

Erry Pradana Darajati <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CAEf0EB8E57Ogts6P6MwGohOMOuA4O3R8AXmKYfK1mUtG-OgM6Q@mail.gmail.com>
​Hi,
I already fix the line to this line >> REQUIRES_LIBS   +=
libc_be_file_stdin libstdc++
but it still gave error. But the error is not in the compiler. It's on the
linker.
My code is like this :

 char cmd[12] ;
  printf("Initialization Finished\n");
  while(1)
  {
    printf("erry@erry-OS : \t");
    gets(cmd);
    if(strcmp(cmd,"clear")==0)
    {
        .............
It gives undefined referenced error to gets in main.o (Liunker error not
compiler error). Where do i go wrong. And also, how to use getline() in
this scope ?

>> And also, how to make hello-cfg be able to accept keyboard input. I have
>> already include libc_be_file_stdin and include line below in my hello.cfg
>> but it still not working :
>>
>> *L4.default_loader:start({ caps = { log = L4.Env.log,},l4re_dbg =
>> L4.Dbg.Warn,log = { "l4linux", "yellow" },}, "rom/hello");*
>
>That looks ok to me. How are you trying to get the input in your
>program?

I'm trying to get input using getchar(). But when i load the kernel. It's
still skips the input sequence and going into loop (I'm accpeting the
keyboard input inside While(1))

Thank you for any help

-- 
*Regards,*
*Erry Pradana Darajati | Student of Computer Engineering*
*Politeknik Elektronika Negeri Surabaya / EEPIS, Indonesia*

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.