Skip to Content
Exploring Expect
book

Exploring Expect

by Don Libes
December 1994
Intermediate to advanced
606 pages
16h 7m
English
O'Reilly Media, Inc.
Content preview from Exploring Expect

Adding Extensions To Expectk

Adding extensions to Expectk is very similar to adding them to Expect. This section describes only the differences.

The template exp_main_tk.c should be used instead of exp_main_exp.c.

Linking requires the Tk library, so the compile line should look like this:

cc -I/usr/local/include exp_main_tk.c ... \
      -L/usr/local/lib -lexpect -ltk -ltcl -lX11 -lm

As with adding extensions to Expect, you may need to adjust this command also. If this does not work, look at the Tcl and Expect Makefiles to see what libraries they use on your system.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

AI Agents in Action

AI Agents in Action

Micheal Lanham
Learning Go

Learning Go

Jon Bodner

Publisher Resources

ISBN: 9781565920903Supplemental ContentErrata Page