Chapter 2. Concepts

We assume that you already know the basic concepts of object-oriented, event driven user interfaces. If not, things like these can be answered by sending us an E-Mail.

2.1. Create and Compile

To ease the writing of Makefiles, the toad-config script provides information on compiler and flags required to compile an application. For example with toad-config your Makefile may contain the following lines:

CXX=`toad-config --cxx`
CXXFLAGS=`toad-config --cxxflags`
LD=$(CXX)
LDFLAGS=`toad-config --libs`
toad-config itself can also be used to create a complete Makefile along with a C++ source file, which can be compiled and executed at once:
% mkdir example
% cd example
% toad-config --new-project example
% ls
example.cc  Makefile
% make
% ./example