[MonoDevelop] Monodevelop just stopped recognizing some of my functions for no discernable reason

Michael Hutchinson m.j.hutchinson at gmail.com
Fri Jan 23 17:38:44 EST 2009


On Sun, Jan 4, 2009 at 12:33 PM, That One Guy... <flyindragon1 at aol.com> wrote:
> I was wondering if these are supposed to be globally supported functions, or
> if i'm missing an include somewhere.
>
> heres my includes:
> #include <iostream>
>
> #include <string>
> #include <cstdio>
> #include <fstream>
>
> and the functions that stopped working:
>        cout << system("clear") << endl;        //send the 'clear' command to the
> terminal, to blank the window
>
> transform(input_root.begin(),input_root.end(),input_root.begin(),(int(*)(int))tolower);
> //turn the user input string to all lowercase letters
>        exit(0);        //a function i read about online that was supposed to make the
> program exit safely when triggered
>
> all of these were working properly up until today.  now, they're all giving
> me the 'not declared in this scope' error... how can i fix it?

exit and system are defined in the C stdlib:
http://en.wikipedia.org/wiki/Stdlib.h

So you need
#include <cstdlib>

FWIW, there aren't many C/C++ users on this mailing list, so general
C/C++ questions like this are generally best asked elsewhere. If you
have questions about C/C++ that are specific to the MonoDevelop IDE,
however, this is the best place :-)

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list