User forums > Help
Code Blocks and gcov.exe trouble.
Dako300:
When I try and compile my project it says (in the build log):gcov.exe: option requires an argument -- s. That is when it is linking the .o files. I think Code::Blocks may be passing an invalid argument to the program. any help would be nice.
oBFusCATed:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
jarod42:
Note that gcov is not a compiler but a Test Coverage Program.
Dako300:
ok, I did that and the command is :gcov.exe -o "bin\Release\program.exe" obj\Release\main.o obj\Release\core.o -s
I think I need to remove the -s but how?
EDIT:If that is not the linker, is it possible to compile it without the program?
jarod42:
in Settings->Compiler and Debugger...:Global compiler settings
In linker settings, you may have the -s option (which is for stripping symbol with gcc)
In ToolChain executables, you should NOT have gcov anywhere.
(values would be :"gcc, g++, g++, ar, gdb, windres, make" (with possible prefix like mingw32-) for gcc compiler).
gcov is a program which tell you which part of your code has been executed,
it is neither a compiler nor a linker.
Navigation
[0] Message Index
[#] Next page
Go to full version