开发者

visual c++ and C++ builder

开发者 https://www.devze.com 2023-03-09 13:59 出处:网络
Can C++builder compile any c++ source files. I don\'t have a good knowledge in c++. but i have some experience in delphi.

Can C++builder compile any c++ source files.

I don't have a good knowledge in c++. but i have some experience in delphi. I like to use c++ but confused which one to use

I know that cbuilder has vcl , easy to develop ,easy for delphi developer

But my problem is can it compile any c++ files (vc++ and other source files). 开发者_C百科is it compatible with vc++ (excluding MFC and VCL). Can i use any APIs with c++builder


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. 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.


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.)


In my experience, C++Builder's support for more advanced C++ code is limited. 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). Simpler C++ code can work without any problems.

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.


You can download a free version of C++ Builder at www.embarcadero.com. With that, you can test your libraries for compatibility.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号