> What version of gcc are you using? Something newish? My guess would be something like 3.4 or higher. http://www.gnu.org/software/gcc/gcc-3.4/changes.html I says that "Unreferenced static variables and functions are removed" This fits your problem description. Please could you try the attached patch. Thanks Andrew