简体   繁体   English

具有Boost库的C ++开发CodeBlock Ubuntu

[英]C++ Development CodeBlock Ubuntu with Boost Library

I majorly work in Java but I have to switch to C++ for development for one project. 我主要从事Java工作,但是我必须切换到C ++才能开发一个项目。 I done my research and find that in order to do portable code in C++, I need to use Boost or QT libraries etc. Therefore, now I download CodeBlock IDE in Ubuntu but afraid how to start building project. 我完成了研究,发现为了在C ++中执行可移植代码,我需要使用Boost或QT库等。因此,现在我在Ubuntu中下载CodeBlock IDE,但担心如何开始构建项目。 I search alot in the web to how to use Boost with CodeBlock but each time I only find it working/configure with Windows. 我在网上搜索了很多如何将Boost与CodeBlock结合使用的方法,但是每次我只发现它可以在Windows下运行/配置时。 http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef http://wiki.codeblocks.org/index.php?title=BoostWindowsQuickRef

Can please guide me regarding how to configure Boost library with CodeBlock in Ubuntu so that I can write Portable code. 可以请我指导一下如何在Ubuntu中使用CodeBlock配置Boost库,以便我编写可移植代码。 Please also let me know if I am wrong in direction to write portable code which must be support in both Linux and Windows environment. 如果我在编写可移植代码方面有误,也请让我知道,该代码必须在Linux和Windows环境中均受支持。

Have a look at http://www.boost.org/doc/libs/1_52_0/more/getting_started/unix-variants.html 看看http://www.boost.org/doc/libs/1_52_0/more/getting_started/unix-variants.html

If you dont't need the latest version of boost you should install boost on ubuntu using 如果您不需要最新版本的Boost,则应使用以下命令在ubuntu上安装boost

apt-get install libboost*

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

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