Im only a noob myself, but if you're using higher than A5 (which I assume seeing as youre using Lite-C) I believe you should be using "c_trace()" rather than the old obsolete "trace()"
Hope this helps
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial