Jump to content
  • Advertisement
Sign in to follow this  
endasil

unresolved external symbol

This topic is 5410 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 get a bunch of messages about unresolved external symbols here. I assume i am missing some lib file or such, but i can't figure out what. So if you know what the problem is, please help me. Error 9 error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) Project Lek Error 10 error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) Project Lek Error 11 error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) Project Lek Error 12 error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) Project Lek Error 13 error LNK2001: unresolved external symbol "public: void __thiscall std::_String_base::_Xran(void)const " (?_Xran@_String_base@std@@QBEXXZ) Project Lek Error 14 error LNK2019: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ) referenced in function "protected: bool __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Grow(unsigned int,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAE_NI_N@Z) Project Lek Error 15 error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ) Project Lek Error 16 error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ) Project Lek Error 17 error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ) Project Lek Error 18 error LNK2001: unresolved external symbol "public: void __thiscall std::ios_base::_Addstd(void)" (?_Addstd@ios_base@std@@QAEXXZ) Project Lek Error 19 error LNK2019: unresolved external symbol __imp__GetAsyncKeyState@4 referenced in function "public: int __thiscall InputClass::KeyboardControl(void)" (?KeyboardControl@InputClass@@QAEHXZ) Project Lek Error 20 error LNK2001: unresolved external symbol __imp__GetAsyncKeyState@4 Project Lek Error 21 error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function _WinMain@16 Project Lek Error 22 error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function _WinMain@16 Project Lek Error 23 error LNK2019: unresolved external symbol __imp__MessageBoxA@16 referenced in function _WinMain@16 Project Lek Error 24 error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) Project Lek Error 25 error LNK2019: unresolved external symbol __imp__PostQuitMessage@4 referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) Project Lek Error 26 error LNK2019: unresolved external symbol __imp__RegisterClassA@4 referenced in function "bool __cdecl RegisterWindowClass(void)" (?RegisterWindowClass@@YA_NXZ) Project Lek Error 27 error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "bool __cdecl RegisterWindowClass(void)" (?RegisterWindowClass@@YA_NXZ) Project Lek Error 28 error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function "bool __cdecl CreateSimpleWindow(int)" (?CreateSimpleWindow@@YA_NH@Z) Project Lek Error 29 error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "bool __cdecl CreateSimpleWindow(int)" (?CreateSimpleWindow@@YA_NH@Z) Project Lek Error 31 error LNK2019: unresolved external symbol __imp__GetSystemMetrics@4 referenced in function "bool __cdecl CreateSimpleWindow(int)" (?CreateSimpleWindow@@YA_NH@Z) Project Lek Error 30 error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function "bool __cdecl CreateSimpleWindow(int)" (?CreateSimpleWindow@@YA_NH@Z) Project Lek

Share this post


Link to post
Share on other sites
Advertisement
Hmmm. What did you change in your code that caused this error? Or are you trying to compile code you got from somewhere else?

Some of those are STL functions, others I think are DirectX ones. Try putting:

#pragma comment(lib,"d3d9.lib")
#pragma comment(lib,"d3dx9.lib")

..in somewhere, see if that helps. Also might need libc.lib.

Share this post


Link to post
Share on other sites
I'm trying to compile in VC 2005 Beta.

The changes i have done is to use #include <fstream> #include <iostream> etc instead of the .h versions since support those are removed.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Tried adding libc.lib, the only result was that i got a bunch of already defined in libc.lib messages. Apparantly i have a library that covers these things already. Any other advice?

Thank you very much for trying to help me.

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.

GameDev.net 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!