From: ahoward <ah...@po...> - 2004-07-26 01:09:03
|
One last thing (promise). For those of you playing with plugins, be aware that there are two ways to initialize/finalize your plugin, either: void _init(void) void _fini(void) or void __attribute__ ((constructor)) example_init(void) void __attribute__ ((destructor)) example_fini(void) The online documentation says that you will DIE if you use the former, and that the latter is the ONE TRUE WAY. See Brad's previous post on this: http://sourceforge.net/mailarchive/message.php?msg_id=8531079 On my machine however, the former works but the latter does not. Brian suspects that this is a bug that got fixed with gcc 3.3 (I am using 3.2.2), so you may have to play around to figure out which method works for you. Alternatively, if anyone knows a generic fix for this, I would be keen to hear it. A. Andrew Howard email: ah...@po... Department of Computer Science http: www-robotics.usc.edu/~ahoward University of Southern California phone: 1 (213) 740 6416 Los Angeles, CA, U.S.A. 90089-0781 fax: 1 (213) 821 5696 << Insert pithy saying here >>> |