> What am I not doing or doing incorrectly? I'm not sure about the specifics of AIX, but it could be that what you want to do is not supported. g++ requires on some systems that main is compiled with either gcc or g++, and that collect2 is used to link the object files, to support construction of global objects. Regards, Martin