Skip to content

getting_started

Yannik Friedrich edited this page Nov 22, 2022 · 1 revision

Getting Started

The TXT 4.0 includes everything needed for programming with C/C++. It comes with gcc (version 8.2.0) as the compiler. The C and C++ headers are found under /usr/include/ft.

The entire C API is included by

#include <ft/ft.h>

and the C++ API is included by

#include <ft/ft.hpp>

When compiling, one has to link the TXTControlLib.

gcc test.c -o test -lTxtControlLib

In order to be able to start the C/C++ programs from the GUI, the object file has to be located in the /opt/ft/workspaces directory (or in its subdirectories). In the same folder, there must be a file with the same name plus the ending .c or .cpp. This can be the actual source code or the file can be completely empty.

Clone this wiki locally