That's were CLion and CMake come in.ĬLion is a multiplatform development environment (IDE). In short, you often find yourself having to use and maintain two or three projects to compile a single application for several OSes. Naturally, you can install gcc under Windows and macOS as well, but the process is cumbersome, in particular if you use external libraries such as Pthread, openSSL, libUSB, and so on. Microsoft recommends using VisualStudio and its cl compiler, macOS recommends using the Xcode IDE and the Clang compiler, while under Linux you traditionally use the gcc compiler and a simple text editor. Moreover, each OS implements the Posix standard slightly differently.īut the main difficulty is to have to use several IDEs and compilers. During the development phase, you must manage the differences between the OSes, for example both type of directory separators ( / vs. We thought that this could also be of interest to our customers.Ĭ++ is a very powerful programming language, but it is complex to use, in particular if you work with several OSes. We performed this modification because some members of the Yoctopuce development team use these products daily. Let's start by stating that we are not in any way affiliated or sponsored by JetBrains, the company developing CLion.
![clion free clion free](https://i.imgur.com/fYXOmuC.png)
Clion free how to#
If it's not the case, we recommend that you start by reading our post " How to start in C++ with Yoctopuce modules" which explains how our library works. Note: We assume that you already have a some knowledge of the C++ language and of our programming library.
![clion free clion free](https://getin-topc.com/simgs/jetbrains-clion-2018/jetbrains-clion-2018-free-download.png)
This IDE is very practical, so much so that we updated our C++ examples for them to work directly in this IDE. This week, we are going to show you how to use our C++ library with the CLion IDE.