Hello Peter,
Am Sonntag, 24. Mai 2009 15:07:28 schrieb Peter Weichai:
> Need some urgent help. I'm working on uclinux. I started with a simple
> program as below:
> int main (void)
> {
> int iTemp = 0;
> string input = "";
>
> cout <<"Enter a value:\n";
> getline(cin,input);
> cout<<"value:" << input << "\n";
> return 0;
> }
>
> The program get compiled using eclipse and run successfully. However one
> weird thing is that, the program wouldn't wait for user input. I tried with
> cin>>input as well. Any advice?
Mh, that is somewhat similar to my experiences in some cases, where i start
gdbserver to debug a program, but gdbserver don't stop at the beginning and
starts the app right away. When I press ctrl+c gdbserver stops and only then
it accepts connection from a host with gdb. I didn't find any explanation for
this behavior. The occurence also depends on the busybox configuration (or
the romfs at all), adding some apps creates this behavior, removing them take
it out again.
Regards
Alexander
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev