[Bug 217] undefined reference to `OutBuffer::writestring(char const*)'

via D.gnu d.gnu at puremagic.com
Mon Mar 28 07:57:42 PDT 2016


http://bugzilla.gdcproject.org/show_bug.cgi?id=217

--- Comment #8 from Johannes Pfau <johannespfau at gmail.com> ---
All files in dfrontend are c++ files with the .c extension. This was never an
issue.

Also version.c isn't the problem. The problem is your build compiles version.c
to VERSION.o (this is OK) but then tries to link VERSION.o into VERSION (and it
shouldn't do this). version.c will be part of the final cc1d executable, it
should not be linked into a VERSION executable. There shouldn't even be a
VERSION executable: VERSION is a text file in the source tree
https://github.com/D-Programming-GDC/GDC/blob/master/gcc/d/VERSION

What happens is probably this: A rule depends on d/VERSION and make hooks up an
implicit (or GCC rule) which compiles %s.o into %s. Because your build system
messes up version.c (lower case) into VERSION.o that implicit rule not matches
and is invoked. Solution: Try using a newer build system (MSYS2) (on NTFS,
don't know if FAT works).

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20160328/6712f8c0/attachment.html>


More information about the D.gnu mailing list