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 solve the compatibility problem between Eclipse and CDT

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the relevant knowledge of "how to solve the compatibility problem of Eclipse and CDT". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

[question]

CDT version: 5.0.0, or cdt-master-5.0.0.zip

Eclipse version: 3.4.2, or eclipse-SDK-3.4.2-win32.zip

Java version:

C:\ Documents and Settings\ Administrator > java-version

Java version "1.5.0008"

Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)

Java HotSpot (TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)

This CDT and Eclipse version, according to the official website description

Http://www.eclipse.org/cdt/downloads.php

Is a match:

"CDT 5.0.x

CDT 5.0 runs with Eclipse 3.4 and is part of the Eclipse Ganymede simultaneous release. . "

However, tried yesterday, 5.0.1 and 3.4.2 match, CDT can not be used, can not appear Cmax Cure + project.

It took a long time to change 5.0.0 and 3.4.2, because:

After configuring all the information that needs to be configured, create a new hello C++ project to test whether the whole environment is working properly.

The resulting compiled console output error:

* Build of configuration Debug for project helloCpp *

Cannot run program "make":?

[resolution process]

Went to the Internet to find, there are not many people with this problem, those who encounter similar problems, is

Cannot run program "make": Launching failed

However, not only do I have this problem here, but also the following message shows "Launching failed", which is abnormal and shows a question mark.

He he.

Other people's solutions.

Use Eclipse + CDT + MinGW to do Windows programming (preface + * *)

Http://www.cnblogs.com/inshion/archive/2009/01/09/1372704.html

It's easy to think of, that is

1. First make sure that you have installed the compilation tool, whether it is Cygwin or MinGW, but you must install the corresponding compilation tool first.

two。 Then confirm whether you add the corresponding environment variable to the environment variable PATH in Windows

I've verified all these, I've set them up, and type make in the cmd of Windows, and type make under Cygwin

Make tools can be found.

Besides, go, too.

The corresponding PATH variable is checked in Project- > Properties- > CAccord Build- > Environment of Eclipse

It's all right:

D:\ cygwin\ bin;C:\ Program Files\ Java\ jre1.5.0_08\ bin\ client;C:\ Program Files\ Java\ jre1.5.0_08\ bin; (omitted in the middle); d:\ Program Files\ StormII

Moreover, I still make sure that the path where I cygwin is added at the front, and I later added one to the noodles, which still doesn't work.

Unwittingly, wondering if it was a backslash "\" Eclipse may have identified a problem, and then added a

D:/cygwin/bin

But it still doesn't work. And also went to Windows to check the PATH variables, including the system and the current Administrator, are all correct, and all add the bin path of Cygwin. But it still doesn't help.

[solution]

*

Http://xiaomao.spaces.live.com/blog/cns!61AD5B3600FC2BDF!248.entry?sa=793804635

It is also impossible to solve, so I wonder if it is possible to solve the compatibility problem between Eclipse and CDT.

So, using the Eclipse that was downloaded from the website yesterday and has been integrated with CDT:

Eclipse-cpp-europa-fall2-win32.zip

Then, you find that everything is OK, and the Hello project can compile and output normally:

* Build of configuration Debug for project helloCpp *

Make all

Building file:.. / src/helloCpp.cpp

Invoking: Cygwin C++ Compiler

Src/helloCpp.d +-O0-G3-Wall-c-fmessage-length=0-MMD-MP-MF "src/helloCpp.d"-MT "src/helloCpp.d"-o "src/helloCpp.o".. / src/helloCpp.cpp "

Finished building:.. / src/helloCpp.cpp

Building target: helloCpp.exe

Invoking: Cygwin C++ Linker

Gmail +-o "helloCpp.exe". / src/helloCpp.o

Finished building target: helloCpp.exe

Therefore, it is now certain that the incompatible versions of Eclipse and CDT are the cause.

Plus what I met yesterday:

"there is a problem with the compatibility of cdt-master-5.0.1.zip and eclipse-SDK-3.4.2-win32.zip. You can't see the option for the new CumberCure + project. Just change it to cdt-master-5.0.0.zip."

[summary of compatibility issues between Eclipse and CDT]

The summary is as follows: the bug that you have encountered:

1.cdt-master-5.0.1.zip and eclipse-SDK-3.4.2-win32.zip, cannot use the CumberCure + project

If you change it to cdt-master-5.0.0.zip and eclipse-SDK-3.4.2-win32.zip, you can use the CumberCraft + project.

Although 2.cdt-master-5.0.0.zip and eclipse-SDK-3.4.2-win32.zip can build a new CumberCraft + project,

But it doesn't compile properly, and there's a bug that can't find make, even though you've installed the tools corresponding to Cygwin and set the environment variables.

This is the end of the content of "how to solve the compatibility problem between Eclipse and CDT". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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