When compiling my c++ sources with the -pg
option to inject gprof profile instrumentation code the compile fails with the undefined reference to _mcount
error.
当用-pg选项编译我的c++源时,可以使用未定义的对_mcount错误的引用来注入gprof配置文件检测代码。
Without this option everything compiles (and runs) fine. What is wrong in my case? (Solaris 10 SPARC Platform)
没有这个选项,一切都可以编译(和运行)。我的情况到底是怎么了?(Solaris 10 SPARC平台)
1 个解决方案
#1
26
Are you both compiling each object file and linking the final executable using the '-pg' flag?
您是否在编译每个对象文件并使用“-pg”标志链接最终的可执行文件?
#1
26
Are you both compiling each object file and linking the final executable using the '-pg' flag?
您是否在编译每个对象文件并使用“-pg”标志链接最终的可执行文件?