[Bug 2756] New: Win32 API applications and GL/gl.h header errors

Wine Bugs wine-bugs at winehq.org
Fri Feb 25 17:03:59 CST 2005


http://bugs.winehq.org/show_bug.cgi?id=2756

           Summary: Win32 API applications and GL/gl.h header errors
           Product: Wine
           Version: 20050111
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: wine-winelib
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: koxta at koxta.net


Hi! I want to compile a simple winapi/gl application under linux using winegcc.
That's what is included:

#include <windows.h>
#include <GL/gl.h>

And that's the output of the compilation attempt:

koxta at hell temp $ winegcc -o minimal minimal.c -mwindows
In file included from minimal.c:8:
/usr/include/GL/gl.h:1291: error: syntax error before "void"
/usr/include/GL/gl.h:1292: error: syntax error before "void"
/usr/include/GL/gl.h:1293: error: syntax error before "GLboolean"
/usr/include/GL/gl.h:1294: error: syntax error before "void"
/usr/include/GL/gl.h:1295: error: syntax error before "void"
/usr/include/GL/gl.h:1296: error: syntax error before "void"
/usr/include/GL/gl.h:1297: error: syntax error before "void"
/usr/include/GL/gl.h:1298: error: syntax error before "void"
/usr/include/GL/gl.h:1299: error: syntax error before "void"
/usr/include/GL/gl.h:1300: error: syntax error before "void"
/usr/include/GL/gl.h:1301: error: syntax error before "void"
/usr/include/GL/gl.h:1302: error: syntax error before "void"
/usr/include/GL/gl.h:1303: error: syntax error before "void"
/usr/include/GL/gl.h:1304: error: syntax error before "void"
/usr/include/GL/gl.h:1305: error: syntax error before "void"
/usr/include/GL/gl.h:1306: error: syntax error before "void"
/usr/include/GL/gl.h:1307: error: syntax error before "void"
/usr/include/GL/gl.h:1308: error: syntax error before "void"
/usr/include/GL/gl.h:1309: error: syntax error before "void"
/usr/include/GL/gl.h:1310: error: syntax error before "void"
/usr/include/GL/gl.h:1311: error: syntax error before "void"
/usr/include/GL/gl.h:1312: error: syntax error before "void"
/usr/include/GL/gl.h:1313: error: syntax error before "void"
/usr/include/GL/gl.h:1314: error: syntax error before "void"
/usr/include/GL/gl.h:1315: error: syntax error before "void"
/usr/include/GL/gl.h:1316: error: syntax error before "void"
/usr/include/GL/gl.h:1317: error: syntax error before "void"
/usr/include/GL/gl.h:1318: error: syntax error before "void"
/usr/include/GL/gl.h:1319: error: syntax error before "void"
/usr/include/GL/gl.h:1320: error: syntax error before "void"
/usr/include/GL/gl.h:1321: error: syntax error before "void"
/usr/include/GL/gl.h:1322: error: syntax error before "void"
/usr/include/GL/gl.h:1323: error: syntax error before "void"
/usr/include/GL/gl.h:1324: error: syntax error before "void"
/usr/include/GL/gl.h:1325: error: syntax error before "void"
/usr/include/GL/gl.h:1326: error: syntax error before "void"
/usr/include/GL/gl.h:1327: error: syntax error before "void"
/usr/include/GL/gl.h:1328: error: syntax error before "void"
/usr/include/GL/gl.h:1329: error: syntax error before "void"
/usr/include/GL/gl.h:1330: error: syntax error before "void"
/usr/include/GL/gl.h:1331: error: syntax error before "void"
/usr/include/GL/gl.h:1332: error: syntax error before "void"
/usr/include/GL/gl.h:1333: error: syntax error before "void"
/usr/include/GL/gl.h:1334: error: syntax error before "void"
/usr/include/GL/gl.h:1335: error: syntax error before "void"
/usr/include/GL/gl.h:1336: error: syntax error before "void"
/usr/include/GL/gl.h:1337: error: syntax error before "void"
/usr/include/GL/gl.h:1338: error: syntax error before "void"
/usr/include/GL/gl.h:1339: error: syntax error before "void"
/usr/include/GL/gl.h:1340: error: syntax error before "void"
/usr/include/GL/gl.h:1341: error: syntax error before "void"
/usr/include/GL/gl.h:1342: error: syntax error before "void"
/usr/include/GL/gl.h:1343: error: syntax error before "void"
/usr/include/GL/gl.h:1344: error: syntax error before "void"
/usr/include/GL/gl.h:1345: error: syntax error before "void"
/usr/include/GL/gl.h:1346: error: syntax error before "void"
/usr/include/GL/gl.h:1347: error: syntax error before "void"
/usr/include/GL/gl.h:1348: error: syntax error before "void"
/usr/include/GL/gl.h:1349: error: syntax error before "void"
/usr/include/GL/gl.h:1350: error: syntax error before "void"
/usr/include/GL/gl.h:1351: error: syntax error before "void"
/usr/include/GL/gl.h:1352: error: syntax error before "void"
/usr/include/GL/gl.h:1353: error: syntax error before "void"
/usr/include/GL/gl.h:1354: error: syntax error before "void"
/usr/include/GL/gl.h:1355: error: syntax error before "void"
/usr/include/GL/gl.h:1356: error: syntax error before "void"
/usr/include/GL/gl.h:1357: error: syntax error before "void"
/usr/include/GL/gl.h:1358: error: syntax error before "void"
/usr/include/GL/gl.h:1359: error: syntax error before "void"
/usr/include/GL/gl.h:1360: error: syntax error before "void"
/usr/include/GL/gl.h:1361: error: syntax error before "void"
/usr/include/GL/gl.h:1362: error: syntax error before "void"
/usr/include/GL/gl.h:1363: error: syntax error before "void"
/usr/include/GL/gl.h:1364: error: syntax error before "void"
/usr/include/GL/gl.h:1365: error: syntax error before "void"
/usr/include/GL/gl.h:1366: error: syntax error before "void"
/usr/include/GL/gl.h:1367: error: syntax error before "void"
/usr/include/GL/gl.h:1368: error: syntax error before "void"
/usr/include/GL/gl.h:1369: error: syntax error before "void"
/usr/include/GL/gl.h:1370: error: syntax error before "void"
/usr/include/GL/gl.h:1371: error: syntax error before "void"
/usr/include/GL/gl.h:1372: error: syntax error before "void"
/usr/include/GL/gl.h:1373: error: syntax error before "void"
/usr/include/GL/gl.h:1374: error: syntax error before "void"
/usr/include/GL/gl.h:1375: error: syntax error before "void"
/usr/include/GL/gl.h:1376: error: syntax error before "void"
/usr/include/GL/gl.h:1377: error: syntax error before "void"
/usr/include/GL/gl.h:1378: error: syntax error before "void"
/usr/include/GL/gl.h:1380: error: syntax error before "void"
/usr/include/GL/gl.h:1381: error: syntax error before "void"
/usr/include/GL/gl.h:1382: error: syntax error before "void"
/usr/include/GL/gl.h:1383: error: syntax error before "void"
/usr/include/GL/gl.h:1384: error: syntax error before "void"
/usr/include/GL/gl.h:1385: error: syntax error before "void"
/usr/include/GL/gl.h:1386: error: syntax error before "void"
/usr/include/GL/gl.h:1387: error: syntax error before "void"
/usr/include/GL/gl.h:1388: error: syntax error before "GLuint"
/usr/include/GL/gl.h:1389: error: syntax error before "void"
/usr/include/GL/gl.h:1390: error: syntax error before "void"
/usr/include/GL/gl.h:1391: error: syntax error before "void"
/usr/include/GL/gl.h:1392: error: syntax error before "void"
/usr/include/GL/gl.h:1393: error: syntax error before "GLenum"
/usr/include/GL/gl.h:1394: error: syntax error before "void"
/usr/include/GL/gl.h:1395: error: syntax error before "void"
/usr/include/GL/gl.h:1396: error: syntax error before "void"
/usr/include/GL/gl.h:1397: error: syntax error before "void"
/usr/include/GL/gl.h:1398: error: syntax error before "void"
/usr/include/GL/gl.h:1399: error: syntax error before "void"
/usr/include/GL/gl.h:1400: error: syntax error before "void"
/usr/include/GL/gl.h:1401: error: syntax error before "void"
/usr/include/GL/gl.h:1402: error: syntax error before "void"
/usr/include/GL/gl.h:1403: error: syntax error before "void"
/usr/include/GL/gl.h:1404: error: syntax error before "void"
/usr/include/GL/gl.h:1405: error: syntax error before "void"
/usr/include/GL/gl.h:1406: error: syntax error before "void"
/usr/include/GL/gl.h:1407: error: syntax error before "void"
/usr/include/GL/gl.h:1408: error: syntax error before "const"
/usr/include/GL/gl.h:1409: error: syntax error before "void"
/usr/include/GL/gl.h:1410: error: syntax error before "void"
/usr/include/GL/gl.h:1411: error: syntax error before "void"
/usr/include/GL/gl.h:1412: error: syntax error before "void"
/usr/include/GL/gl.h:1413: error: syntax error before "void"
/usr/include/GL/gl.h:1414: error: syntax error before "void"
/usr/include/GL/gl.h:1415: error: syntax error before "void"
/usr/include/GL/gl.h:1416: error: syntax error before "void"
/usr/include/GL/gl.h:1417: error: syntax error before "void"
/usr/include/GL/gl.h:1418: error: syntax error before "void"
/usr/include/GL/gl.h:1419: error: syntax error before "void"
/usr/include/GL/gl.h:1420: error: syntax error before "void"
/usr/include/GL/gl.h:1421: error: syntax error before "void"
/usr/include/GL/gl.h:1422: error: syntax error before "void"
/usr/include/GL/gl.h:1423: error: syntax error before "void"
/usr/include/GL/gl.h:1424: error: syntax error before "void"
/usr/include/GL/gl.h:1425: error: syntax error before "void"
/usr/include/GL/gl.h:1426: error: syntax error before "void"
/usr/include/GL/gl.h:1427: error: syntax error before "void"
/usr/include/GL/gl.h:1428: error: syntax error before "void"
/usr/include/GL/gl.h:1429: error: syntax error before "void"
/usr/include/GL/gl.h:1430: error: syntax error before "void"
/usr/include/GL/gl.h:1431: error: syntax error before "void"
/usr/include/GL/gl.h:1432: error: syntax error before "void"
/usr/include/GL/gl.h:1433: error: syntax error before "void"
/usr/include/GL/gl.h:1434: error: syntax error before "GLboolean"
/usr/include/GL/gl.h:1435: error: syntax error before "GLboolean"
/usr/include/GL/gl.h:1436: error: syntax error before "GLboolean"
/usr/include/GL/gl.h:1437: error: syntax error before "void"
/usr/include/GL/gl.h:1438: error: syntax error before "void"
/usr/include/GL/gl.h:1439: error: syntax error before "void"
/usr/include/GL/gl.h:1440: error: syntax error before "void"
/usr/include/GL/gl.h:1441: error: syntax error before "void"
/usr/include/GL/gl.h:1442: error: syntax error before "void"
/usr/include/GL/gl.h:1443: error: syntax error before "void"
/usr/include/GL/gl.h:1444: error: syntax error before "void"
/usr/include/GL/gl.h:1445: error: syntax error before "void"
/usr/include/GL/gl.h:1446: error: syntax error before "void"
/usr/include/GL/gl.h:1447: error: syntax error before "void"
/usr/include/GL/gl.h:1448: error: syntax error before "void"
/usr/include/GL/gl.h:1449: error: syntax error before "void"
/usr/include/GL/gl.h:1450: error: syntax error before "void"
/usr/include/GL/gl.h:1451: error: syntax error before "void"
/usr/include/GL/gl.h:1452: error: syntax error before "void"
/usr/include/GL/gl.h:1453: error: syntax error before "void"
/usr/include/GL/gl.h:1454: error: syntax error before "void"
/usr/include/GL/gl.h:1455: error: syntax error before "void"
/usr/include/GL/gl.h:1456: error: syntax error before "void"
/usr/include/GL/gl.h:1457: error: syntax error before "void"
/usr/include/GL/gl.h:1458: error: syntax error before "void"
/usr/include/GL/gl.h:1459: error: syntax error before "void"
/usr/include/GL/gl.h:1460: error: syntax error before "void"
/usr/include/GL/gl.h:1461: error: syntax error before "void"
/usr/include/GL/gl.h:1462: error: syntax error before "void"
/usr/include/GL/gl.h:1463: error: syntax error before "void"
/usr/include/GL/gl.h:1464: error: syntax error before "void"
/usr/include/GL/gl.h:1465: error: syntax error before "void"
/usr/include/GL/gl.h:1466: error: syntax error before "void"
/usr/include/GL/gl.h:1467: error: syntax error before "void"
/usr/include/GL/gl.h:1468: error: syntax error before "void"
/usr/include/GL/gl.h:1469: error: syntax error before "void"
/usr/include/GL/gl.h:1470: error: syntax error before "void"
/usr/include/GL/gl.h:1471: error: syntax error before "void"
/usr/include/GL/gl.h:1472: error: syntax error before "void"
/usr/include/GL/gl.h:1473: error: syntax error before "void"
/usr/include/GL/gl.h:1474: error: syntax error before "void"
/usr/include/GL/gl.h:1475: error: syntax error before "void"
/usr/include/GL/gl.h:1476: error: syntax error before "void"
/usr/include/GL/gl.h:1477: error: syntax error before "void"
/usr/include/GL/gl.h:1478: error: syntax error before "void"
/usr/include/GL/gl.h:1479: error: syntax error before "void"
/usr/include/GL/gl.h:1480: error: syntax error before "void"
/usr/include/GL/gl.h:1481: error: syntax error before "void"
/usr/include/GL/gl.h:1483: error: syntax error before "void"
/usr/include/GL/gl.h:1484: error: syntax error before "void"
/usr/include/GL/gl.h:1485: error: syntax error before "void"
/usr/include/GL/gl.h:1486: error: syntax error before "void"
/usr/include/GL/gl.h:1487: error: syntax error before "void"
/usr/include/GL/gl.h:1488: error: syntax error before "void"
/usr/include/GL/gl.h:1489: error: syntax error before "void"
/usr/include/GL/gl.h:1490: error: syntax error before "void"
/usr/include/GL/gl.h:1491: error: syntax error before "void"
/usr/include/GL/gl.h:1492: error: syntax error before "void"
/usr/include/GL/gl.h:1493: error: syntax error before "void"
/usr/include/GL/gl.h:1494: error: syntax error before "void"
/usr/include/GL/gl.h:1495: error: syntax error before "void"
/usr/include/GL/gl.h:1496: error: syntax error before "void"
/usr/include/GL/gl.h:1497: error: syntax error before "void"
/usr/include/GL/gl.h:1498: error: syntax error before "void"
/usr/include/GL/gl.h:1499: error: syntax error before "void"
/usr/include/GL/gl.h:1500: error: syntax error before "void"
/usr/include/GL/gl.h:1501: error: syntax error before "void"
/usr/include/GL/gl.h:1502: error: syntax error before "void"
/usr/include/GL/gl.h:1503: error: syntax error before "void"
/usr/include/GL/gl.h:1504: error: syntax error before "void"
/usr/include/GL/gl.h:1505: error: syntax error before "void"
/usr/include/GL/gl.h:1506: error: syntax error before "void"
/usr/include/GL/gl.h:1507: error: syntax error before "void"
/usr/include/GL/gl.h:1508: error: syntax error before "void"
/usr/include/GL/gl.h:1509: error: syntax error before "void"
/usr/include/GL/gl.h:1510: error: syntax error before "void"
/usr/include/GL/gl.h:1511: error: syntax error before "void"
/usr/include/GL/gl.h:1512: error: syntax error before "void"
/usr/include/GL/gl.h:1513: error: syntax error before "void"
/usr/include/GL/gl.h:1514: error: syntax error before "void"
/usr/include/GL/gl.h:1515: error: syntax error before "void"
/usr/include/GL/gl.h:1516: error: syntax error before "void"
/usr/include/GL/gl.h:1517: error: syntax error before "void"
/usr/include/GL/gl.h:1518: error: syntax error before "void"
/usr/include/GL/gl.h:1519: error: syntax error before "void"
/usr/include/GL/gl.h:1520: error: syntax error before "void"
/usr/include/GL/gl.h:1521: error: syntax error before "void"
/usr/include/GL/gl.h:1522: error: syntax error before "void"
/usr/include/GL/gl.h:1523: error: syntax error before "void"
/usr/include/GL/gl.h:1524: error: syntax error before "void"
/usr/include/GL/gl.h:1525: error: syntax error before "void"
/usr/include/GL/gl.h:1526: error: syntax error before "void"
/usr/include/GL/gl.h:1527: error: syntax error before "void"
/usr/include/GL/gl.h:1528: error: syntax error before "void"
/usr/include/GL/gl.h:1529: error: syntax error before "void"
/usr/include/GL/gl.h:1530: error: syntax error before "void"
/usr/include/GL/gl.h:1531: error: syntax error before "void"
/usr/include/GL/gl.h:1532: error: syntax error before "void"
/usr/include/GL/gl.h:1533: error: syntax error before "void"
/usr/include/GL/gl.h:1534: error: syntax error before "void"
/usr/include/GL/gl.h:1535: error: syntax error before "void"
/usr/include/GL/gl.h:1536: error: syntax error before "void"
/usr/include/GL/gl.h:1537: error: syntax error before "GLint"
/usr/include/GL/gl.h:1538: error: syntax error before "void"
/usr/include/GL/gl.h:1539: error: syntax error before "void"
/usr/include/GL/gl.h:1540: error: syntax error before "void"
/usr/include/GL/gl.h:1541: error: syntax error before "void"
/usr/include/GL/gl.h:1542: error: syntax error before "void"
/usr/include/GL/gl.h:1543: error: syntax error before "void"
/usr/include/GL/gl.h:1544: error: syntax error before "void"
/usr/include/GL/gl.h:1545: error: syntax error before "void"
/usr/include/GL/gl.h:1546: error: syntax error before "void"
/usr/include/GL/gl.h:1547: error: syntax error before "void"
/usr/include/GL/gl.h:1548: error: syntax error before "void"
/usr/include/GL/gl.h:1549: error: syntax error before "void"
/usr/include/GL/gl.h:1550: error: syntax error before "void"
/usr/include/GL/gl.h:1551: error: syntax error before "void"
/usr/include/GL/gl.h:1552: error: syntax error before "void"
/usr/include/GL/gl.h:1553: error: syntax error before "void"
/usr/include/GL/gl.h:1554: error: syntax error before "void"
/usr/include/GL/gl.h:1555: error: syntax error before "void"
/usr/include/GL/gl.h:1556: error: syntax error before "void"
/usr/include/GL/gl.h:1557: error: syntax error before "void"
/usr/include/GL/gl.h:1558: error: syntax error before "void"
/usr/include/GL/gl.h:1559: error: syntax error before "void"
/usr/include/GL/gl.h:1560: error: syntax error before "void"
/usr/include/GL/gl.h:1561: error: syntax error before "void"
/usr/include/GL/gl.h:1562: error: syntax error before "void"
/usr/include/GL/gl.h:1563: error: syntax error before "void"
/usr/include/GL/gl.h:1564: error: syntax error before "void"
/usr/include/GL/gl.h:1565: error: syntax error before "void"
/usr/include/GL/gl.h:1566: error: syntax error before "void"
/usr/include/GL/gl.h:1567: error: syntax error before "void"
/usr/include/GL/gl.h:1568: error: syntax error before "void"
/usr/include/GL/gl.h:1569: error: syntax error before "void"
/usr/include/GL/gl.h:1570: error: syntax error before "void"
/usr/include/GL/gl.h:1571: error: syntax error before "void"
/usr/include/GL/gl.h:1572: error: syntax error before "void"
/usr/include/GL/gl.h:1573: error: syntax error before "void"
/usr/include/GL/gl.h:1574: error: syntax error before "void"
/usr/include/GL/gl.h:1575: error: syntax error before "void"
/usr/include/GL/gl.h:1576: error: syntax error before "void"
/usr/include/GL/gl.h:1577: error: syntax error before "void"
/usr/include/GL/gl.h:1578: error: syntax error before "void"
/usr/include/GL/gl.h:1579: error: syntax error before "void"
/usr/include/GL/gl.h:1580: error: syntax error before "void"
/usr/include/GL/gl.h:1581: error: syntax error before "void"
/usr/include/GL/gl.h:1582: error: syntax error before "void"
/usr/include/GL/gl.h:1583: error: syntax error before "void"
/usr/include/GL/gl.h:1584: error: syntax error before "void"
/usr/include/GL/gl.h:1585: error: syntax error before "void"
/usr/include/GL/gl.h:1586: error: syntax error before "void"
/usr/include/GL/gl.h:1587: error: syntax error before "void"
/usr/include/GL/gl.h:1588: error: syntax error before "void"
/usr/include/GL/gl.h:1589: error: syntax error before "void"
/usr/include/GL/gl.h:1590: error: syntax error before "void"
/usr/include/GL/gl.h:1591: error: syntax error before "void"
/usr/include/GL/gl.h:1592: error: syntax error before "void"
/usr/include/GL/gl.h:1593: error: syntax error before "void"
/usr/include/GL/gl.h:1594: error: syntax error before "void"
/usr/include/GL/gl.h:1595: error: syntax error before "void"
/usr/include/GL/gl.h:1596: error: syntax error before "void"
/usr/include/GL/gl.h:1597: error: syntax error before "void"
/usr/include/GL/gl.h:1598: error: syntax error before "void"
/usr/include/GL/gl.h:1599: error: syntax error before "void"
/usr/include/GL/gl.h:1600: error: syntax error before "void"
/usr/include/GL/gl.h:1601: error: syntax error before "void"
/usr/include/GL/gl.h:1602: error: syntax error before "void"
/usr/include/GL/gl.h:1603: error: syntax error before "void"
/usr/include/GL/gl.h:1604: error: syntax error before "void"
/usr/include/GL/gl.h:1605: error: syntax error before "void"
/usr/include/GL/gl.h:1606: error: syntax error before "void"
/usr/include/GL/gl.h:1607: error: syntax error before "void"
/usr/include/GL/gl.h:1608: error: syntax error before "void"
/usr/include/GL/gl.h:1609: error: syntax error before "void"
/usr/include/GL/gl.h:1610: error: syntax error before "void"
/usr/include/GL/gl.h:1611: error: syntax error before "void"
/usr/include/GL/gl.h:1612: error: syntax error before "void"
/usr/include/GL/gl.h:1613: error: syntax error before "void"
/usr/include/GL/gl.h:1614: error: syntax error before "void"
/usr/include/GL/gl.h:1615: error: syntax error before "void"
/usr/include/GL/gl.h:1616: error: syntax error before "void"
/usr/include/GL/gl.h:1617: error: syntax error before "void"
/usr/include/GL/gl.h:1618: error: syntax error before "void"
/usr/include/GL/gl.h:1619: error: syntax error before "void"
/usr/include/GL/gl.h:1620: error: syntax error before "void"
/usr/include/GL/gl.h:1621: error: syntax error before "void"
/usr/include/GL/gl.h:1622: error: syntax error before "void"
/usr/include/GL/gl.h:1623: error: syntax error before "void"
/usr/include/GL/gl.h:1624: error: syntax error before "void"
/usr/include/GL/gl.h:1625: error: syntax error before "void"
/usr/include/GL/gl.h:1626: error: syntax error before "void"
minimal.c: In function `CreateOpenGLWindow':
minimal.c:127: warning: passing arg 1 of `ReleaseDC' from incompatible pointer type
minimal.c:127: warning: passing arg 2 of `ReleaseDC' from incompatible pointer type
minimal.c: In function `WinMain':
minimal.c:146: warning: assignment makes pointer from integer without a cast
minimal.c:157: warning: passing arg 1 of `ReleaseDC' from incompatible pointer type
minimal.c:157: warning: passing arg 2 of `ReleaseDC' from incompatible pointer type
winegcc: i686-pc-linux-gnu-gcc failed.

As far as I can see, each line in gl.h mentioned above begins with WINGDIAPI, like:

[...]
WINGDIAPI void APIENTRY glColor4bv (const GLbyte *v);
WINGDIAPI void APIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue,
GLdouble alpha);
WINGDIAPI void APIENTRY glColor4dv (const GLdouble *v);
[...]

It seems that the compiler doesn't know what WINGDIAPI is.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list