Advertisement Jump to content
Sign in to follow this  

Why unresolved externals? (C++)

This topic is 474 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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


Share this post

Link to post
Share on other sites


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

Thanks capoeira-ninja-coder!

Share this post

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

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!