开发者

Undefined reference to LONG_PTR , Digital Mars C++ compiler problem

I am using the Win Api. My program uses LONG_PTR. It compiles fine with both MinGW and Borland C++ Compiler. But when I try to compile it using the Digital Mars C++ Compiler it gives an error undefined reference to LONG_PTR. Do I have to link extra libraries for DMC, or does the DMC not support WinApu fully开发者_StackOverflow, or is LONG_PTR defined by some other name?


Most likely, the Windows headers simply don't have a correct #ifdef for that compiler. MSDN lists the types of all Windows API types, so it should be easy for you to look it up and provide the correct type.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜