Jump to content
  • Advertisement
Sign in to follow this  
suliman

Why unresolved externals? (C++)

Recommended Posts

I cannot compile my game anymore. It only happens in release build, not debug and I cannot figure it out.

I have cleaned and recompiled the project. The function in question is only mensioned in three lines:

  C:\Dropbox\PROJECT\code\epaengine\gameController.cpp(15):bool gameController::CheckConnection(std::vector<bool> & occupiedPorts)
  C:\Dropbox\PROJECT\code\epaengine\gameController.cpp(40):		CheckConnection(occupiedPorts);
  C:\Dropbox\PROJECT\code\epaengine\gameController.h(46):	bool CheckConnection(std::vector<bool> & occupiedPorts);
  Matching lines: 3    Matching files: 2    Total files searched: 59

 

This is the build error:

Error	3	error LNK2019: unresolved external symbol _XInputGetState@8 referenced in function "public: bool __thiscall gameController::CheckConnection(class std::vector<bool,class std::allocator<bool> > &)" (?CheckConnection@gameController@@QAE_NAAV?$vector@_NV?$allocator@_N@std@@@std@@@Z)	C:\Dropbox\PROJECT\code\games\post\source\gameController.obj	zombies

What can be wrong here?
Thank you

Erik

Share this post


Link to post
Share on other sites
Advertisement

Yay!

The release-build had an old path in "additional dependencies". Now it works fine!

Thanks capoeira-ninja-coder!
Erik

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!