News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code Blocks and gcov.exe trouble.

Started by Dako300, September 11, 2012, 12:07:31 AM

Previous topic - Next topic

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

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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.

Dako300