Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build the environment of CumberCraft + under Eclipse

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces how to build the environment of CAccord Candle + under Eclipse. It is very detailed and has certain reference value. Friends who are interested must finish reading it!

We need a cdt, which can be downloaded from the Eclipse website.

We need the MinGW--C/C++ compilation platform, which needs to be installed after download, and select glossy + and MinGW Make. At the same time, set the environment variable, set% MinGW_HOME%\ bin to PATH, and then we can click gcc from the command line to see if it works.

We need gdb--C/C++ debugging platform, download and install, default to MinGW_HOME.

We open the eclipse to compile a Candlestick + project, right-click to run, debug.

Installation

Set environment variabl

Create a new C project

New C++ project

Have a piece of HelloWorld.

C's

C code

# include < stdio.h > # include < stdlib.h > int main (void) {puts ("! Hello Worldwaters!"); / * prints! Hello Worldwaters! * / return EXIT_SUCCESS;}

Console compilation output

Console code

* Build of configuration Debug for project c * Internal Builder is used for build * gcc-O0-G3-Wall-c-fmessage-length=0-osrc\ c.o..\ src\ c.cgcc-oc.exe src\ c.oBuild complete for project cTime consumed: 14011 ms.

Console result output

Console code

! Hello World!!!

C++

C++ Code

# include < iostream > using namespace std;int main () {cout < < "! Hello Worldworkers returns 0;}" < endl; / / prints! Hello Worldworkers returns 0; "

Console compilation output

Console code

* Build of configuration Debug for project cpp * Internal Builder is used for build * Gmail +-O0-G3-Wall-c-fmessage-length=0-osrc\ cpp.o..\ src\ cpp.cppg++-ocpp.exe src\ cpp.oBuild complete for project cppTime consumed: 25452 ms.

Console result output

Console code

! Hello World!!! The above is all the contents of the article "how to build the environment under Eclipse". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report