What's this about MONO?

If you get an error like this when running configure:

./configure: line 21183: syntax error near unexpected token `MONO,'
./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)'

If you're on OS X: find pkg.m4, copy it to thrift/aclocal, and rerun bootstrap.sh. This file can be found in MacPorts by installing the pkgconfig package. The requisite file will be in /opt/local/share/aclocal

If you're on Linux, install pkg-config and rerun bootstrap.sh

Why can't I build on Fedora Core 9?

If you get an error about PATH_MAX not being declared, please make sure you are building from the latest SVN. We've fixed some issues with GCC 4.3 and FC9 in particular since the last release.

Is struct inheritance supported?

No, it isn't. Thrift support inheritance of service interfaces, but only composition/containment for structures.

Can I overload service methods?

Nope. Method names must be unique.

I'm throwing a TException in my server, why is the client complaining?

Think of TExceptions as "unexpected" exceptions for your Thrift server. They are uncaught (not unchecked!) exceptions that rise to your server's main loop and terminate the current Thrift call. If your application uses exceptions, you must create exceptions in your IDL. See the Tutorial for instructions on create exceptions.

FAQ (last edited 2009-09-20 23:47:09 by localhost)