Solved

Bloodshed Dev-C++ Error with system("pause")

Posted on 2009-04-05
3
1,294 Views
Last Modified: 2012-05-06
Until recently, I have been able to use the system("pause"); command without any issue. Now when using it, it returns an error indicating that it is the first time I am using it and it has not been declared. Can someone help me figure out why I am getting this error now?

In function `int main()':
44 `system' undeclared (first use this function)
(Each undeclared identifier is reported only once for each function it appears in.)
0
Comment
Question by:ssharp77
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 500 total points
ID: 24072587
For using the system function, you need to #include <stdlib.h>
0
 
LVL 53

Assisted Solution

by:Infinity08
Infinity08 earned 500 total points
ID: 24072588
Or in case it's C++ :

    #include <cstdlib>
0
 

Author Closing Comment

by:ssharp77
ID: 31566805
That's what I forgot to do. The ever basic #include . Ugh. Thanks as always Infinity!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question