> I could not compile my C++ source code with g++ compiler(egcs-1.01 release). > the source code is below. I don't know if that helps: the current egcs snapshots don't show this bug; i.e. your sample code compiles, links, and runs. Martin