Re: std::cin in Fiasco/L4Re (with 'make qemu')
Adam Lackorzynski <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue Apr 01, 2014 at 02:12:51 +0200, Emanuel Berg wrote:
> How do I use std::cin in Fiasco/L4Re?
>
> The software compiles and links fine, only during
> execution (with 'make qemu'), this crashes it:
>
> Global_Scheduler::Global_Scheduler (bool read_from_file) :
> period_left(0),
> number_of_schedulers(0) {
> if (not read_from_file) {
> std::cout << "Global scheduler period: ";
> std::cin >> period;
> // ...
>
> There is no error, but there is no halt to execution
> (to wait for input), and the value "read" (to period)
> is inconsistent.
Add REQUIRES_LIBS += libc_be_file_stdin to your Makefile.
Adam
--
Adam [email protected]
Lackorzynski http://os.inf.tu-dresden.de/~adam/