Now finaly the compilation works in ICCAVR. I compiled the simple project and used (Project->Options->Compiler Tab-> Global Optimization) Now the last problem "!ERROR file 'heap.o': undefined symbol 'pop_xgset2' " dissapered. Thanks again for the hint Brett. Per