source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

typeinfo.h No such file or directory

Open Martymoose98 opened this issue 3 years ago • 4 comments

While trying to make a server plugin I encountered some build errors when building the Serverplugin_empty project. I looked online and some results said to use #include <typeinfo>. If I do that I get a bunch of various errors on with the c runtime library however, I did update the Platform Toolset to Visual Studio 2022 (v143) from Visual Studio 2013 - Windows XP (v120_xp) (not installed) because I couldn't find it in the vs installer, maybe I am blind. Sorry if this is a bad report or caused because of the toolset change. It appears to me that _CRTNOALIAS has no definition else it would be purple and using "Peek Definition" results in nothing. image

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E1696	cannot open source file "typeinfo.h"	Serverplugin_empty	\source-sdk-2013\mp\src\public\tier0\memalloc.h	387	


Severity	Code	Description	Project	File	Line	Suppression State
Error	C2086	'int _CRTNOALIAS': redefinition	Serverplugin_empty	\source-sdk-2013\mp\src\public\tier0\memoverride.cpp	132	

Martymoose98 avatar Dec 30 '21 07:12 Martymoose98

You can save yourself time and just download VS2013:

https://visualstudio.microsoft.com/vs/older-downloads/

geotavros avatar Jan 09 '22 21:01 geotavros

You can save yourself time and just download VS2013:

https://visualstudio.microsoft.com/vs/older-downloads/

But is there a fix for VS community 2017/2022?

RealFX-Code avatar Jul 05 '22 15:07 RealFX-Code

VS2013 worked like a charm, but the servers are down so you cannot activate it so VS softlocks itself, and source SDK craps out on compile with new visual studio.

brannanz avatar Oct 17 '22 10:10 brannanz

Yeah, it is strange I guess you might be able to use the 2014 CS:GO leaked source maybe that compiles better? Perhaps using the allied modders SDK as an alternative? Would be sick if someone at valve could chime in though. If I remember right, I caved and downloaded vs2013 which was a real pain because Microsoft barely supports vs2013 anymore (it is a separate download not in the installer). The installation process also switched all .h, .c, .cpp, etc... files to open with the vs2013. Which was a delight to fix. When I got it working I believe there still was linker issues with Msg in tier0. However, my memory might be duping me as it could have been the wrong branch of the allied modders SDK. Was like a few months ago, what I do remember it was tedious and vexing to work with.

Martymoose98 avatar Oct 27 '22 14:10 Martymoose98