std::cin in Fiasco/L4Re (with 'make qemu')
Adam Lackorzynski
adam at os.inf.tu-dresden.de
Wed Apr 2 00:21:15 CEST 2014
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 adam at os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
More information about the l4-hackers
mailing list