linking error unresolved external symbol
Hi,
I have recently tried to make a win32 program and needed to include a library. I use msft vc++ and now after trying to add the lib to my project i get these errors when i compile my program. The default window project even reports these.
error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "long __stdcall WindowProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WindowProc@@YGJPAUHWND__@@IIJ@Z)
error LNK2001: unresolved external symbol __RTC_Shutdown
error LNK2001: unresolved external symbol __RTC_InitBase
I cant compile anything without these errors coming up. I dont want to mess this up anyworse and i dont know what to do.
Please Help!
Lambo
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.
Make sure you have the header file for the library #include''d and the library is being linked in, i.e.:
#pragma comment(lib, "your-library-name-here.lib")
or add the .lib to
Project->Settings...->Link tab->Object/library modules box
If you''re using the latter, make sure it''s done for both Release and Debug mode (for VC++ anyway).
---
K-1 Productions: Come visit us here.
#pragma comment(lib, "your-library-name-here.lib")
or add the .lib to
Project->Settings...->Link tab->Object/library modules box
If you''re using the latter, make sure it''s done for both Release and Debug mode (for VC++ anyway).
---
K-1 Productions: Come visit us here.
---K-1 Productions: Come visit us here.
I think I hit some settings when trying to add the library and now i cant even link the windows template without these errors coming up. Im not trying to add the library anymore, im just trying to get something to work. I think i messed up the library directories path. Not sure.
Lambo
Lambo
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.
Hi,
I fixed it. The library directory settings were out of order. I switched the order that it searched and the problem was fixed. The errors have gone away. it was searching directories that had older versions of the librarys and was not using the newer ones.
Lambo
I fixed it. The library directory settings were out of order. I switched the order that it searched and the problem was fixed. The errors have gone away. it was searching directories that had older versions of the librarys and was not using the newer ones.
Lambo
We all think that we are the best with computers but we all keep reffering to the same all-mighty all-knowing Guru, Google.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement