Re: tkinter: trouble with atexit

anthony baxter (anthony@aaii.oz.au)
Thu, 28 Jul 1994 17:27:28 +1000

Mike Tibbs wrote:
> I can not get tkinter to make because it uses the atexit function.
> Wasn't there a previous post about this function?

I dont remember seeing anything about this - my quicky fix for this was to
add

#ifdef NO_ATEXIT
#define atexit(foo) on_exit(foo,0)
#endif

and compile with -DNO_ATEXIT

This works for SunOS, under Ultrix there's no atexit or on_exit, so I guess
commenting out that section entirely is the fix.

this is pretty ugly, but it seems to work, and I cant be bothered coming
up with something neater at the moment.

QuickGrossHacks'R'Us,
Anthony