Форум программистов, компьютерный форум CyberForum.ru

Ошибка компиляций mmsystem.h (на с++) - C++

Восстановить пароль Регистрация
 
Рейтинг: Рейтинг темы: голосов - 34, средняя оценка - 4.97
Zhomart
0 / 0 / 0
Регистрация: 16.06.2009
Сообщений: 9
16.06.2009, 09:19     Ошибка компиляций mmsystem.h (на с++) #1
Я пытался компилить этот код, но к сожелению он не скомпилился
C++
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <cstdio>
#include <mmsystem.h>
using namespace std;
 
int main(){
    freopen("input","r",stdin);
    freopen("output","w",stdout);
 
    return 0;
}
Вот ошибка
g++ 2.cpp
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1639:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1640:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1641:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1642:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1643:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1644:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1645:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1646:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1647:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1648:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1649:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1650:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1651:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1652:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1653:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1654:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1655:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1656:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1657:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1658:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1659:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1660:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1661:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1662:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1663:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1664:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1665:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1666:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1667:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1668:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1669:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1670:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1671:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1672:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1673:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1674:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1675:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1676:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1677:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1678:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1679:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1680:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1681:
error: `FOURCC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1682:
error: `FOURCC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1683:
error: `LPMMIOPROC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1684:
error: `LPMMIOPROC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1685:
error: `HMMIO' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1686:
error: `HMMIO' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1687:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1688:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1689:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1690:
error: `LONG' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1691:
error: `LONG' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1692:
error: `LONG' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1693:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1694:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1695:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1696:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1697:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1698:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1699:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1700:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1701:
error: `WINAPI' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1702:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1703:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1704:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1705:
error: `MCIERROR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1706:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1707:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1708:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1709:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1710:
error: `BOOL' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1711:
error: `BOOL' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1712:
error: `BOOL' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1713:
error: `HTASK' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1714:
error: `YIELDPROC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1717:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1718:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1719:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1720:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1721:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1722:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1723:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1724:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1727:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1728:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1729:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1730:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1731:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1732:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1733:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1736:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1737:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1738:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1739:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1740:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1741:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1742:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1745:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1746:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1747:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1748:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1751:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1752:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1755:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1756:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1758:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1761:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1762:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1764:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1767:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1772:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1776:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1777:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1778:
error: `HDC' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1781:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1782:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1783:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1784:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1785:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1786:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1787:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1790:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1791:
error: `MCIDEVICEID' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1792:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1793:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1794:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1795:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1796:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1799:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1800:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1802:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1805:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1806:
error: `HWND' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1808:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1811:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1816:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1820:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1821:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1822:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1825:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1826:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1827:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1830:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1831:
error: `LPCSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1832:
error: `RECT' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1835:
error: `DWORD' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1836:
error: `LPCWSTR' does not name a type
C:/mingw/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/mmsystem.h:1837:
error: `RECT' does not name a type

D:\Informatics\Poject\Wav>
Please help
Заранее СПС
Similar
Эксперт
41792 / 34177 / 6122
Регистрация: 12.04.2006
Сообщений: 57,940
16.06.2009, 09:19     Ошибка компиляций mmsystem.h (на с++)
Посмотрите здесь:

В чём ошибка.В коде там где коментарий там ошибка поучается. C++
C++ Вылетает ошибка error C2061: синтаксическая ошибка: идентификатор "_TCHAR"
зависает компиляций C++
C++ Глупая ошибка, но до сих пор неисправленная ошибка: ";"
Синтаксическая ошибка: Ошибка 1 error C2059 C++
типизированный файл, ошибка ошибка при выходе C++
С++ ошибка в проге, но не могу понять какая ошибка( C++
C++ Выдает: Ошибка C2296 Ошибка C2106

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
После регистрации реклама в сообщениях будет скрыта и будут доступны все возможности форума.
Haster
инженер-системотехник
 Аватар для Haster
109 / 108 / 2
Регистрация: 10.03.2009
Сообщений: 533
16.06.2009, 09:30     Ошибка компиляций mmsystem.h (на с++) #2
А зачем тебе нужен файл mmsystem.h?
CyBOSSeR
Эксперт C++
 Аватар для CyBOSSeR
2295 / 1665 / 86
Регистрация: 06.03.2009
Сообщений: 3,675
16.06.2009, 09:35     Ошибка компиляций mmsystem.h (на с++) #3
Тебе нужно дополнительно подключить заголовочный файл windows.h.
Дело в том, что HWND, DWORD - типы которые используются в mmsystem.h, а объявленные в windows.h.
YurA_280784
Заблокирован
16.06.2009, 09:43     Ошибка компиляций mmsystem.h (на с++) #4
Ребята библиотечки нуна не забывать подключать
winmm.lib и dsound.lib

Короче после хедера mmsystem.h вбить нуна
C++
1
2
#pragma comment(lib,"winmm.lib")
#pragma comment(lib,"dsound.lib")
Zhomart
0 / 0 / 0
Регистрация: 16.06.2009
Сообщений: 9
16.06.2009, 09:50  [ТС]     Ошибка компиляций mmsystem.h (на с++) #5
Спасибо, сработало с windows.h.
Я написал
C++
1
2
3
#include <iostream>
#include <mmsystem.h>
#include <windows.h>
Оказывается надо windows.h писать выше!
Yandex
Объявления
16.06.2009, 09:50     Ошибка компиляций mmsystem.h (на с++)
Ответ Создать тему
Опции темы

Текущее время: 03:15. Часовой пояс GMT +3.
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Рейтинг@Mail.ru