anyKode Marilou
ContentsIndexHome
PreviousUpNext
MODA C++

This section describes how to create a native C++ MODA project.

A MODA project is an usual C++ project in which you add the MODA library. MODA is designed to be used on both Windows and Linux. Starting at Marilou 2010, the xklib library is already included in MODA. So, you can remove it in order to port your robotics applications from 2009 to Marilou 2010 version. 

 

 

MODA library:

Moda-x[Processor]-[OS]-[Compiler].lib : the MODA code, management of connections, dialogs with embedded devices, string and dynamic arrays management. 

 

Additional libraries:  

Compiler/OS 
Additional libraries 
Visual Studio / Windows 
wsock32.lib: socket/network management 
DevC++ / Windows 
libwsock32.a : socket/network management
libgdi32.a: Windows GDI objects management 
CodeBlocks / Windows 
ws2_32.a: socket/network management
gdi32.a: Windows GDI objects management 
CodeBlocks / Linux 
pthread: Threads/Mutex management 
G++ / Linux 
pthread: Threads/Mutex management 

 

Directories of additional include files:

$(MARILOU_INSTALL_DIR_SDKS)\Moda\Includes 

(Implies that Marilou is installed correctly and that variable MARILOU_INSTALL_DIR_SDKS is well recorded in the system.) 

 

Directories of search for additional libraries files:

$(MARILOU_INSTALL_DIR_SDKS)\Moda\Libs 

(Implies that Marilou is installed correctly and that variable MARILOU_INSTALL_DIR_SDKS is well recorded in the system.) 

 

Recommended options of compilation :

- Runtime:"Multi-Threaded [ Release/Debug ] DLL" 

- Alignment of the structures: 8 bytes (It is the default option for Visual Studio) 

 

Rebuild MODA:

Code source and compilation projects are located in [INSTALL_DIR]\Sdks\Moda\ModaCPP. MODA projects are also available from [INSTALL_DIR]\Samples\AllSamples-XXXXXX global samples solution.

The Moda library is available for several compiler/OS: 

 

MODA:
Library 
OS 
Compiler 
moda-x86-win-vc6.lib 
Windows 
Visual Studio 6.0 
moda-x86-win-vc2003.lib 
Windows 
Visual Studio 2003 
moda-x86-win-vc2005.lib 
Windows 
Visual Studio 2005 (or free Express edition) 
moda-x64-win-vc2005.lib 
Windows X64 
Visual Studio 2005 (or free Express edition) 
moda-x86-win-vc2008.lib 
Windows 
Visual Studio 2008 (or free Express edition) 
moda-x64-win-vc2008.lib 
Windows X64 
Visual Studio 2008 (or free Express edition) 
moda-x86-win-vc2010.lib 
Windows 
Visual Studio 2010 (or free Express edition) 
moda-x64-win-vc2010.lib 
Windows X64 
Visual Studio 2010 (or free Express edition) 
moda-x86-win-bcbuilder.lib 
Windows 
Codegear RAD Studio 2008, Borland C++ builder 
libmoda-x86-win-devcpp.a 
Windows 
Bloodshed Dev-C++ 
libmoda-x86-win-codeblocks.a 
Windows 
CodeBlocks 
libmoda-x86-linux-codeblocks.a 
Linux (ubuntu) 
CodeBlocks 
libmoda-x86-linux.a 
Linux (ubuntu) 
Make, g++ 

 

The ‘Debug’ version use the letter ‘d’ as suffix (moda-x86-win-vc2005d.lib)

Name 
Description 
This is namespace ModaCPP. 
Moda 
This is namespace Moda. 
This is namespace Marilou. 
Name 
Description 
Example of MODA C++ program : 
Protocol level. 
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!