VirtualBox linux development virtual environment to build a pit (3) use of eclpse

I like to use eclispe to develop, probably because of the habit of writing java and other code, using eclipse to write code, compile, debug and code prompts are all good, and eclipse is based on java, it is very convenient to use cross-platform, the virtual machine has been installed, decompress Eclipse can be used, download a CPP version from eclipse , or use other versions, and then install a CDT plug-in, android 's ADT plug-in, or NDK development, which is equivalent to including a CDT , and can also be used at the same time. However, there may also be some problems:

 

To run eclipse , you need to install jdk. If it is not installed, or the installed JVM or JDK version is wrong, an error will also be reported. The eclipse I downloaded is 4.6, CPP version.

Install the following JDK to run

yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel

 

Then link eclipse to the place you want, double-click, and the command line can run.

 

 

Then create a new HelloWorld project:

 

If the installed virtual machine does not have the compilation tool installed, the project in eclipse may not run.

, there are problems such as cout in helloword cannot be recognized, iostream cannot be found, etc. The solution is very simple

yum update
yum install gcc-C++

Then clean, and then build the project, it can run



 

 

 

 

Of course, the Debug interface is still very friendly, and I wish you a happy use.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326450735&siteId=291194637