DSO引用了隐藏的gcov_init 在C++程序中尝试使用GCC运行SCONScript Iam使用linux redhat 5 sconscript中编译器的代码:- env.Append =(CCFLAG = '-fprofile-arcs') en
DSO引用了隐藏的gcov_init 在C++程序中尝试使用GCC运行SCONScript Iam使用linux redhat 5 sconscript中编译器的代码:-DSO引用了隐藏的gcov_init 在C++程序中尝试使用GCC运行SCONScript Iam使用linux redhat 5 sconscript中编译器的代码:- env.Append =(CCFLAG = '-fprofile-arcs') en,c++,gcc,scons,gcov,C++,Gcc,Scons,Gcov,DSO引用了隐藏的gcov_init 在C++程序中尝试使用GCC运行SCONScript Iam使用linux redhat 5 sconscript中编译器的代码:- env.Append =(CCFLAG = '-fprofile-arcs') env.Append =(CCFLAG = '-ftest-coverage') env.Append =(CCFLAG = '--coverage') code for Linker in sconscript:- env.Append =(
env.Append =(CCFLAG = '-fprofile-arcs')
env.Append =(CCFLAG = '-ftest-coverage')
env.Append =(CCFLAG = '--coverage')
code for Linker in sconscript:-
env.Append =(LINKFLAG= '-fprofile-arcs')
env.Append =(LINKFLAG= 'lgcov')
env.Append =(CCFLAG = '--coverage')
During compilation i get the below error
/usr/bin/ld: TU/Exe/Release/gcc_rhel5_tao/test_SCRECORDER.exe: hidden symbol '__gcov_init' in /usr/lib/gcc/i386-redhat-linux/4.1.2/libgcov.a(_gcov.o) is referenced by DSO
Final link failed:nonrepresentable section on output
您是否尝试在web上搜索给定的错误消息?可能相关:您有“env.Append=(CCFLAG='-fprofile arcs')”而没有“env.Append(CCFLAG='-fprofile arcs')”?尝试了上述命令,但它也不起作用