EOSERV Forum > Lounge > Linker Error LNK2019
Topic is locked.
Page: << 1 >>
Linker Error LNK2019
Author Message
Post #65076 Linker Error LNK2019

Today I decided to find a tutorial on C++ game programming. I followed the tutorial and I've been getting these errors over and over again. I can't figure outwhy they're showing up. 

Error 1 error LNK2019: unresolved external symbol _D3DXCreateSprite@8 referenced in function "public: bool __thiscall D3DPong::CGameEngine::Init(int,int,int)" (?Init@CGameEngine@D3DPong@@QAE_NHHH@Z)c:\Users\Ethan\documents\visual studio2010\Projects\pong\pong\CGameEngine.obj pong

Error 2 error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "public: bool __thiscall D3DPong::CGameEngine::Init(int,int,int)" (?Init@CGameEngine@D3DPong@@QAE_NHHH@Z)c:\Users\Ethan\documents\visual studio2010\Projects\pong\pong\CGameEngine.obj pong

Error 3 error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: __thiscall D3DPong::CGameTimer::CGameTimer(void)" (??0CGameTimer@D3DPong@@QAE@XZ) c:\Users\Ethan\documents\visualstudio2010\Projects\pong\pong\CGameTimer.obj pong

I have the DirectX SDK from June 2010 installed and included in my visual studio project properties. I've been searching for a while on this subject and I just can't seem to figure it out. The tutorial waspostedhere: http://minalien.com/2010/01/pong-series-01/

Any suggestions are appreciated!

EDIT: Figured it out! Looks like I had to add the individual .lib files instead of just pointing the project at the directory that had the .lib files in it.
---
class EOSERV {
Programmer | Oldbie
Open source EO Client: https://github.com/ethanmoffat/EndlessClient
};
14 years, 8 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Lounge > Linker Error LNK2019