Tag Archives: cpp

MEX file in MATLAB – Part 1

In this tutorial I will show you a very simple example of a MEX file in MATLAB. A MEX file is a compiled version of a C/C++ code written and compiled in MATLAB that can be used/executed as an M-file. … Continue reading

Posted in C/C++, Linux, MATLAB, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Minimum CMake file for YARP – A Small Tutorial

The following CMakeLists.txt file is the minimum requirement to be used in compiling codes written in YARP:  

Posted in C/C++, Linux, programming, Software, Ubuntu, yarp | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

CMAKE – tips & tricks

for pointing at the source directory in the cmake file you can use the parameter : CMAKE_CURRENT_SOURCE_DIR usage in the CMakeLists.txt file:      

Posted in C/C++, Linux, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , | Leave a comment

CMAKE by Example – Part.3

You can check previous tutorial: CMake by Example – part.2 In this tutorial, I will show you how to find a pre-installed package and use it in your project. For example, we want to use the OpenCV libraries. We have … Continue reading

Posted in C/C++, Linux, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

CMAKE by example – Part.2

(The first CMake tutorial: CMAKE by Example – Part.1) In this tutorial, I will show you how to check the variables (e.g. environment variables). This can be very useful for debugging your CMake file as well. First of all, to … Continue reading

Posted in C/C++, Linux, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

CMAKE by Example – Part. 1

CMAKE is the cross-platform, open-source build system. CMake is a family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles … Continue reading

Posted in C/C++, Linux, programming, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

Using Function and Arguments C++ (in 9 steps)

in this example we are going to show, how to use function and arguments in C++ code, (Here I am using Ubuntu 10.04 / gedit / g++ compiler,) *If you do not have g++ compiler or it is not updated … Continue reading

Posted in C/C++, Linux, programming, Ubuntu | Tagged , , , , , , , , , , , , , | Leave a comment

C/C++ programming in Linux (Ubuntu) – Newbie

The first lesson: Programming C/C++ in Linux Here we are using the basic commands to make a HelloWorld simple program in C and C++, There are 9 steps to do this as you can see below. So, open a terminal … Continue reading

Posted in C/C++, programming | Tagged , , , , , , , , , | 2 Comments