Странные ошибки компиляции при компиляции C ++ на DJGPP

Компилирование следующего кода на DJGPP с GCC 6.1.0

#include <cmath>
int main() {}

приводит к следующей ошибке:

In file included from c:/djgpp/include/cxx/6.10/cmath:42:0,
from MAIN.CPP:1:
c:/djgpp/include/cxx/6.10/bits/cpp_type_traits.h:162:7: error: expected unqualified-id at end of input
typedef __true_type __type;
^~~~~~~
c:/djgpp/include/cxx/6.10/bits/cpp_type_traits.h:162:7: error: expected '}' at end of input
c:/djgpp/include/cxx/6.10/bits/cpp_type_traits.h:162:7: error: expected '}' at end of input
c:/djgpp/include/cxx/6.10/bits/cpp_type_traits.h:162:7: error: expected '}' at end of input
c:/djgpp/include/cxx/6.10/bits/cpp_type_traits.h:162:7: error: unterminated #ifndef
MAIN.CPP: file not recognized: File format not recognized
collect2.exe: error: ld returned 1 exit status

Все вокруг cpp_type_traits.h:162 выглядит нормально:

  template<>
struct __is_integer<unsigned char>
{
enum { __value = 1 };
typedef __true_type __type;
};

Что не так?

0

Решение

Задача ещё не решена.

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector