Archived

This topic is now archived and is closed to further replies.

markdezonia

Compiler syntax error dinput.h UINT_PTR

Recommended Posts

Compiler errors for dinput.h C:\DEV-C_~1\INCLUDE\Dinput.h:645: syntax error before `;'' C:\DEV-C_~1\INCLUDE\Dinput.h:657: syntax error before `;'' C:\DEV-C_~1\INCLUDE\Dinput.h:1053: syntax error before `;'' C:\DEV-C_~1\INCLUDE\Dinput.h:1199: syntax error before `;'' All Errors have UINT_PTR in them. How do I Fix ? Compiler errors for basetsd C:\DEV-C_~1\INCLUDE\basetsd.h:35: syntax error before `,'' C:\DEV-C_~1\INCLUDE\basetsd.h:39: syntax error before `,'' C:\DEV-C_~1\INCLUDE\basetsd.h:321: syntax error before `,'' C:\DEV-C_~1\INCLUDE\basetsd.h:328: syntax error before `,'' C:\DEV-C_~1\INCLUDE\basetsd.h:329: syntax error before `,'' All Errors have __int64 in them. How do I Fix ? I''m using a DEV-C++ ver.4 Compiler Someone please help me! NO dinput.h no mouse :<

Share this post


Link to post
Share on other sites
These fixes should work:
quote:
Original post by markdezonia
All Errors have UINT_PTR in them.
How do I Fix ?


write:

typedef unsigned long UINT_PTR;

before including dinput.h
quote:

All Errors have __int64 in them.
How do I Fix ?


write:

typedef long long int __int64;

before including the header (looks like you are using a header written specifically for the Microsoft Visual C++ compiler here).

Share this post


Link to post
Share on other sites
THX THX BUT STILL one left
In file included from c:\windows\desktop\marks\Startup.h:14,
from c:\windows\desktop\marks\princes of space.cpp:1:
C:\DEV-C_~1\INCLUDE\Dinput.h:657: syntax error before `;''
ONE LEFT ?

Share this post


Link to post
Share on other sites