Raised This Month: $32 Target: $400
 8% 

Solved hl2sdk-css for VS2015?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 01-23-2016 , 10:03   hl2sdk-css for VS2015?
Reply With Quote #1

Dear all,

can you please recompile tier1 for VS2015? (or tell me how to do it?)

https://github.com/alliedmodders/hl2sdk/commits/sdk2013
There was a commit from psychonic "Recompile Windows tier1 with VS2010.".

Probably that's the reason I get LNK2001 (unresovled external symbol) for __vsnprintf.

Thanks!

Edit: Steps to do it yourselves:

1. run createallprojects.bat in root folder
2. compile tier1\tier1.vcxproj
3. resolve errors

Edit 2: Recent hl2sdk-css gives me a bunch of errors when I include it. Doesn't seem to work well.

Last edited by Chrisber; 01-19-2017 at 08:27. Reason: changed prefix to solved
Chrisber is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-23-2016 , 11:05   Re: hl2sdk-css for VS2015?
Reply With Quote #2

You do indeed get errors due to VS 2015's libraries being ABI-incompatible with previous versions. For that same reason, we're not going to ship libs for VS 2015 in the repository at this time - it would break compatibility with all older VS versions, which some people are still using.

You can either tell VS 2015 to use an older VS's toolset (this is what I do, telling it to use 2013). Or, you can just open the existing project file in /tier1 directory and compile. It may ask you to upgrade the project, which is fine. You will probably also have to recompile mathlib if you use it.
psychonic is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 01-23-2016 , 16:56   Re: hl2sdk-css for VS2015?
Reply With Quote #3

Is this going to be a problem when I use interfaces directly from the engine then? For now, everything seems to work. But maybe there are cornercases...
Chrisber is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-23-2016 , 17:32   Re: hl2sdk-css for VS2015?
Reply With Quote #4

Quote:
Originally Posted by Chrisber View Post
Is this going to be a problem when I use interfaces directly from the engine then? For now, everything seems to work. But maybe there are cornercases...
No. It's only the CRT that's incompatible due to some shuffling around of functions, which causes the linking errors you saw.
psychonic is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 01-24-2016 , 09:45   Re: hl2sdk-css for VS2015?
Reply With Quote #5

Okay, thanks. Shall I use hl2sdk-css or sdk2013 for current CS:S? I think -css because sdk2013 is probably for mods, isn't it?

Edit: If I compare sdk2013 to css, it seems much more complete than css only (e. g. materialsystem folder is missing, vstdlib too). Do I have to merge both of them to get a complete SDK?

Last edited by Chrisber; 01-24-2016 at 09:53.
Chrisber is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-24-2016 , 10:25   Re: hl2sdk-css for VS2015?
Reply With Quote #6

Some interfaces in sdk2013 are slightly newer than what is actually in CS:S. What's in hl2sdk-css should be plenty for plugins and is what Metamod:Source and Sourcemod both use for CS:S.
psychonic is offline
Merudo
Senior Member
Join Date: Feb 2016
Old 03-24-2016 , 21:05   Re: hl2sdk-css for VS2015?
Reply With Quote #7

VS2015 "unresolved external symbol" errors related to the printf and scanf family of functions can be easily fixed by adding the legacy_stdio_definitions.lib to the linker.

I had the exact same error regarding tier1 with VS2015, and that fixed it
__________________

Last edited by Merudo; 03-24-2016 at 21:06.
Merudo is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 01-16-2017 , 15:11   Re: hl2sdk-css for VS2015?
Reply With Quote #8

Hi Merudo,

thanks for posting. You saved me from installing Visual Studio 2013 :-)
Chrisber is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode