开发者

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

开发者 https://www.devze.com 2023-03-21 07:06 出处:网络
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 undefine

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

精彩评论

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