Cannot compile with -cov or -profile

Juan Jose Comellas jcomellas at gmail.com
Tue Mar 28 19:30:27 PST 2006


I'm trying to profile some classes I've written using Mango under Linux.
Whenever I try to compile them using the -cov or -profile arguments with
DMD I get the following link error:

/home/jcomellas/devel/d/mango_test/mango/io/DisplayWriter.o:(.data+0x8c):
undefined reference to `_ModuleInfo_3std6stdarg'
/home/jcomellas/devel/d/mango_test/mango/convert/Sprint.o:(.data+0x58):
undefined reference to `_ModuleInfo_3std6stdarg'
/home/jcomellas/devel/d/mango_test/mango/convert/Format.o:(.data+0x120):
undefined reference to `_ModuleInfo_3std6stdarg'
/home/jcomellas/devel/d/mango_test/mango/io/Socket.o:(.data+0x478):
undefined reference to `_ModuleInfo_3std6stdint'
/home/jcomellas/devel/d/mango_test/mango/io/Socket.o:(.data+0x47c):
undefined reference to `_ModuleInfo_3std9intrinsic'
/home/jcomellas/devel/d/mango_test/mango/io/Socket.o:(.data+0x480):
undefined reference to `_ModuleInfo_3std9intrinsic'
/home/jcomellas/devel/d/mango_test/mango/io/selector/SelectSelector.o
(.data+0x2e8): undefined reference to `_ModuleInfo_3std9intrinsic'
collect2: ld returned 1 exit status

I've been looking at Phobos and the object file for the std.stdarg module
and they don't have the symbols that DMD is referencing when compiling. Has
anybody tried compiling with this arguments under Linux?



More information about the Digitalmars-d-bugs mailing list