TCLAP 1.1.0 Bug

TCLAP library version 1.1.0 contains a small bug:
Including tclap/CmdLine.h more then once (in different files) causes linking errors.

Linking problem is caused by these functions:

  • TCLAP::OptionalUnlabeledTracker::check
  • TCLAP::MultiSwitchArg::shortID
  • TCLAP::MultiSwitchArg::longID

Declaring these 3 functions as “inline” fixes this bug.

I reported this bug to the author and he answered that this problem has been fixed in CVS and will be
part of the next release.

I released a package for Ubuntu Jaunty containing this fix, you can download it from my PPA