Eng.

A test application that shows the advanced features of working with the library, including user units and working with the correction table.

===== RUN =====
On Windows:
testapp_C can be built using testapp_C.sln. Make sure that Microsoft Visual C++ Redistributable Package 2013 is installed.
	1. Open solution examples/test_C/testapp_C/testapp_C.sln.
	2. Build and run it from the IDE.

On Linux:
	1. Install libximc*.deb and libximc-dev*.deb of the target architecture in the specified order. It is IMPORTANT to install the library only of the appropriate Linux bit depth and only in the specified order.
	2. Copy ximc/ximc.h to the directory examples/test_C/testapp_C.
	3. Install gcc.
	4. Test application can be built with the installed library with the following script:
		$ make
	5. In case of cross-compilation (target architecture differs from the current system architecture) feed -m64 or -m32 flag to compiler.
	Then launch the application as:
		$ make run

To quickly build and run the example on Linux, you can use the testapp_C.sh script. You don't need to install libraries for it to work;
it will automatically build and run the example.

On macOS:
Library is a Mac OS X framework, and at example application it’s bundled inside testapp_C.app.
	1. Copy ximc/macosx/libximc.framework, ximc/ximc.h to the directory examples/test_C/testapp_C.
	2. Install XCode. Test app should be built with XCode project testapp_C.xcodeproj.
	3. Then launch application testapp_C.app and check activity output in Console.app.

===== To run in CodeBlocks =====
1. Before starting:
	On Windows:
		You must use MS Visual C++ to compile. Make sure that the Microsoft Visual C++ Redistributable Package 2013 is installed.
		The library with dependencies is located in the ximc/win** folders. The following files are required for the example to work: bindy.dll, libximc.dll, xiwrapper.dll.
	On Linux:
		Install libximc*.deb and libximc-dev*.deb for the target architecture. Then copy ximc/ximc.h to the directory examples/test_C/testapp_C. Install a gcc version compatible with CodeBlocks.
	On macOS:
		Copy ximc/macosx/libximc.framework, ximc/ximc.h to the directory examples/test_C/testapp_C. Install XCode compatible with CodeBlocks.
2. To build and run, open the examples/test_C/testapp_C/testapp_C.cbp project in CodeBlocks. For Windows select Configuration named Win32 or Win64.
3. Build and run the application from the development environment.


Rus.

Тестовое приложение, показывающее расширенные возможности работы с библиотекой, включая пользовательские единицы и работу с корректирующей таблицей.

===== ЗАПУСК =====
Windows:
Для компиляции необходимо использовать MS Visual C++. Убедитесь, что Microsoft Visual C++ Redistributable Package 2013 установлен.
Библиотека с зависимостями находится в папках ximc/win**. Для работы примера необходимы следующие файлы: bindy.dll, libximc.dll, xiwrapper.dll.
	1. Откройте пример /testapp_C/testapp_C.sln.
	2. Соберите и запустите его из среды IDE.

Linux:
	1. Установите libximc*.deb и libximc-dev*.deb целевой архитектуры в указанном порядке. ВАЖНО устанавливать библиотеку только соответствующей разрядности Linux и только в указанном порядке.
	2. Скопируйте ximc/ximc.h в каталог examples/test_C/testapp_C.
	3. Установите gcc.
	4. Тестовое приложение может быть собрано с помощью установленной библиотеки командой:
		$ make
	5. Выполнить приложение можно командой:
		$ make run

Для быстрой сборки и запуска примера на Linux можно запустить скрипт testapp_C.sh. Для его работы не нужно устанавливать библиотеки - он автоматически соберет и запустит пример.

macOS:
Библиотека для macOS поставляется в формате macOS framework.
	1. Скопируйте ximc/macosx/libximc.framework и ximc/ximc.h в каталог examples/test_C/testapp_C.
	2. Установите XCode. Пример должен быть собран с помощью XCode-проекта testapp_C.xcodeproj.
	3. Запустите приложение testapp_C.app и проверьте его работу в Console.app.

===== Для работы с примером в среде CodeBlocks =====
1. Перед запуском:
	Windows:
		Для компиляции необходимо использовать MS Visual C++. Убедитесь, что Microsoft Visual C++ Redistributable Package 2013 установлен.
		Библиотека с зависимостями находится в папках ximc/win**. Для работы примера необходимы файлы: bindy.dll, libximc.dll, xiwrapper.dll.
	Linux:
		Установите libximc*.deb и libximc-dev*.deb целевой архитектуры. Затем скопируйте ximc/ximc.h в каталог examples/test_C/testapp_C. Установите gcc, совместимый с CodeBlocks.
	macOS:
		Скопируйте ximc/macosx/libximc.framework, ximc/ximc.h в каталог examples/test_C/testapp_C. Установите XCode, совместимый с CodeBlocks.
2. Для сборки и запуска откройте проект examples/test_C/testapp_C/testapp_C.cbp в CodeBlocks. Для Windows выберите конфигурацию Win32 или Win64.
Выполните сборку и запустите приложение из среды разработки.