Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

code coverage analysis problem with tango-0.99.8

Moderators: kris

Posted: 04/08/09 07:45:29

using the tango-0.99.8 bundle with linux-dmd.1.041, code coverage analysis results in a linker error:

> dmd -cov ...
tango-0.99.8-bin-linux-dmd.1.041/bin/../lib/libtango-base-dmd.a(cover.o): In function `_D2rt5cover8readFileFAaKAaZb':
rt/cover.d:(.text._D2rt5cover8readFileFAaKAaZb+0x46): undefined reference to `fcntl_O_RDONLY'
collect2: ld returned 1 exit status
--- errorlevel 1
Author Message

Posted: 04/08/09 16:20:04

sorry you are right, a file was missing, now I have added it to the svn version. If you want to stay with the prebuild package you can compile

#include <sys/fcntl.h>

// this is needed only by rt.cover
int fcntl_O_RDONLY(){
    return O_RDONLY;
}

with a c compiler and add the resulting .o to your executable