Hi, I have a problem with gcc. I want use gcov but i can't compile my programs. It generate .gcda file if i use gcc of ports tree.
$ gcc -Wall -g --coverage -o sample sample.c /usr/bin/ld: cannot find -lgcov collect2: ld returned 1 exit status /usr/local/lib/gcc/amd64-unknown-openbsd5.2/4.2.4/libgcov.a exist. Why /usr/lib/gcc-lib/amd64-unknown-openbsd5.2/4.2.1/libgcov.a don't exists ? Thanks, Azwaw OUSADOU sample.c : #include <stdio.h> #include <stdlib.h> int main (int argc, char **argv) { printf("Hello World !"); return EXIT_SUCCESS; }