Problem building DMD
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 11 09:54:55 PST 2017
On 03/11/2017 06:41 PM, Eric wrote:
> I'm trying to build the master branch of DMD on redhat 7.
> I get the following errors:
>
> ddmd/root/newdelete.c:26:8: error: expected identifier or ‘(’ before
> string constant
> extern "C"
> ^
> ddmd/root/newdelete.c:31:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘new’
> void * operator new(size_t m_size)
> ^
> ddmd/root/newdelete.c:36:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘delete’
> void operator delete(void *p)
>
> Does anyone know what I am doing wrong?
Looks like a C compiler is used instead of a C++ compiler. Despite the
extension, dmd's *.c files are C++ code.
More information about the Digitalmars-d-learn
mailing list