简体   繁体   English

视觉 c++ 和 C++ 构建器

[英]visual c++ and C++ builder

Can C++builder compile any c++ source files. C++builder 可以编译任何 c++ 源文件。

I don't have a good knowledge in c++.我对 c++ 没有很好的了解。 but i have some experience in delphi.但我在 delphi 方面有一些经验。 I like to use c++ but confused which one to use我喜欢用 c++ 但不知道该用哪一个

I know that cbuilder has vcl, easy to develop,easy for delphi developer我知道cbuilder 有 vcl,易于开发,易于 delphi 开发人员

But my problem is can it compile any c++ files (vc++ and other source files).但我的问题是它可以编译任何 c++ 文件(vc++ 和其他源文件)。 is it compatible with vc++ (excluding MFC and VCL).是否与vc++兼容(不包括MFC和VCL)。 Can i use any APIs with c++builder我可以在 c++builder 中使用任何 API

You'll find C++ Builder very comfy coming from Delphi if you don't care about MFC or .NET via C++/CLI etc and just want native C++ then either will work for you. You'll find C++ Builder very comfy coming from Delphi if you don't care about MFC or .NET via C++/CLI etc and just want native C++ then either will work for you. Visual Studio 2010 supports a lot of the new C++0x features which is pretty nice, although they don't have variadic templates yet. Visual Studio 2010 支持很多新的 C++0x 特性,这些特性非常好,尽管它们还没有可变参数模板。 I'm not sure how much of C++0x is in C++ Builder as yet but that could be worth looking into as a deciding factor.我还不确定 C++ Builder 中有多少 C++0x,但这可能值得作为决定性因素进行研究。

It should be able to compile any standards conforming code.它应该能够编译任何符合标准的代码。 If the code uses extensions that another compiler provides, it will more than likely have problems.如果代码使用另一个编译器提供的扩展,它很可能会出现问题。 VC++ has quite a few extensions that are on by default and so someone using that compiler might use them with out realizing what is going on(the same applies to G++ the other major C++ compiler out there.) VC++ 有很多默认打开的扩展,因此使用该编译器的人可能会在没有意识到发生了什么的情况下使用它们(同样适用于 G++ 和其他主要的 C++ 编译器。)

You can download a free version of C++ Builder at www.embarcadero.com.您可以在 www.embarcadero.com 下载 C++ Builder 的免费版本。 With that, you can test your libraries for compatibility.有了它,您可以测试您的库的兼容性。

In my experience, C++Builder's support for more advanced C++ code is limited.根据我的经验,C++Builder 对更高级的 C++ 代码的支持是有限的。 For example, many of Boost's libraries are unsupported in C++Builder, and I've often had to modify other open source libraries to get them to build properly in C++Builder (due to various bugs or limitations in C++Builder's compiler).例如,许多 Boost 的库在 C++Builder 中不受支持,我经常不得不修改其他开源库以使它们在 C++Builder 中正确构建(由于 C++Builder 中的各种错误或限制)编译器)。 Simpler C++ code can work without any problems.更简单的 C++ 代码可以毫无问题地工作。

So, depending on what C++ libraries / source files / APIs you're wanting to use, getting them to work in C++Builder may be very straightforward, or it may take significant work.因此,根据您想要使用的 C++ 库/源文件/API,让它们在 C++Builder 中工作可能非常简单,或者可能需要大量工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM