You need to put -pg in the linker parameters as well, i.e. Under project/project options/parameters, specify -pg in both the C++ compiler and the linker boxes. I just tested and omitting it from the linker options does give you the unresolved references to mcount.
|