ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.84k stars 2.02k forks source link

unresolved external symbol ___report_rangecheckfailure #421

Open corizeus opened 7 years ago

corizeus commented 7 years ago

I downloaded the TF2 Classic source code (it's still source 2013 shut up) and I got the LNK 1120 fatal error. Doesn't tell me what I can do about it. I heard that it can be caused by having spaces in any of the folders that the .dll is being exported to, and the error says that I have an extra slash in the directory that isn't needed. (C:\Users\boi\Desktop\TF2Classic-master\game\tf2classic\bin\\client.dll : fatal error LNK1120: 1 unresolved externals) I checked the output directory but I didn't see any problems with it so if anyone can help me, you would be a godsend.

kennyrkun commented 7 years ago

This isn't an issue with your folder, it's an issue with something being defined twice.

You should have gotten another error message actually telling you what that was, maybe show us?

corizeus commented 7 years ago

Sorry for the wait, and yes. I did get several errors related to LNK2001 and one that was related to LNK2019. vgui_controls.lib(RichText.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure

vgui_controls.lib(TextEntry.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure

vgui_controls.lib(BuildModeDialog.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure

tier1.lib(interface.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure

tier1.lib(utlbufferutil.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure

vgui_controls.lib(FileOpenDialog.obj) : error LNK2001: unresolved external symbol ___report_rangecheckfailure

tier1.lib(KeyValues.obj) : error LNK2019: unresolved external symbol ___report_rangecheckfailure referenced in function "public: class KeyValues * __thiscall KeyValues::FindKey(char const *,bool)" (?FindKey@KeyValues@@QAEPAV1@PBD_N@Z)

SamVanheer commented 7 years ago

Check this question: https://stackoverflow.com/questions/25273954/unresolved-external-symbol-report-rangecheckfailure

You're probably using settings that causes VS to handle this check improperly. Which version of Visual Studio are you using?