简体   繁体   中英

error LNK2019: unresolved external symbol _Direct3DCreate9Ex@8 referenced in function "protected: XYX()"

I am getting the following LINK error while compiling my C++ solution:

error LNK2019: unresolved external symbol _Direct3DCreate9Ex@8 referenced in function "protected: XYX()

The symbol "Direct3DCreate9Ex' is defined in "ddraw.h" header file found in "C:\Program Files\Microsoft SDKs\Windows\v7.0\Include". And verified that the header file "ddraw.h" is present in this location. Also I have included this path in VS settings "Tools-->Options-->VC++ Directories -> Includes".

But still I am getting the link error as " error LNK2019: unresolved external symbol _Direct3DCreate9Ex@8 referenced in function "protected: XYX() " ".

Can anyone kindly help me in getting rid of this link error while compiling my C++ solution. I am using VS 2008 on 64 bit Win7.

Thanks in advance.

Based on reference page for Direct3DCreate9Ex you need to link with D3D9.lib .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM