Compiling the Program

Listing 7.19 is the file used to compile this program. If you get it from the companion Web site, it will be called build.sh. To compile, at the command line send

% ./build.sh 
Listing 7.19. File build.sh contents: The Commands Used to Compile the SESI Order Application
01 clear 
02 
03 gcc -Wall -g -o sesi_order.exe callbacks.c interface.c \ 
04              support.c   main.c  sesi_utils.c \ 
05     `gtk-config --cflags --libs` \ 
06     -I/usr/include/mysql \ 
07     -L/usr/lib/mysql -lmysqlclient -lm -lz 

Line 1 simply clears the screen; this makes it more readable if any compile errors occur. Lines 3 and 4 are the compile commands and the target files; the backslash character (\) is the line-continuation character.

Line 5 sets the GTK+ flags and ...

Get MySQL Building User Interfaces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.