Hi Matze, I recommend using g++ to compile and link, instead of just using g++ to compile, and trying to cobble together your own ld to link. If you really, really, really want to use your own ld, first use g++ -v to link, and then note what g++ passes to ld, and make sure that you understand why g++ is passing the parameters it does, and when to use or not use them, and be aware that your ld is brittle in the sense that upgraded versions of GCC will likely break your custom ld. HTH, --Eljay