Discussion:
[hlcoders] compiling source sdk 2013
Tom Schumann
2018-05-06 21:46:23 UTC
Permalink
I'm trying to compile https://github.com/ValveSoftware/source-sdk-2013 in
Visual Studio 2017 which I know isn't supported, but I've generated a .sln
using the fix at https://developer.valvesoftware.com/wiki/Source_SDK_2013,
but I get compile errors which I can't figure.
Most of the problems seem to be in memoverride.cpp - I get a few errors on
line 122 of
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/tier0/memoverride.cpp
- this declaration has no storage class or type specifier, syntax error:
'void' should be preceded by ';' and missing type specifier - int assumed.
Note: C++ does not support default-int
By eye it all seems okay but it's like the compiler thinks there's a
missing or stray semicolon somewhere.
Anyone had any luck with this? It seems like memoverride.cpp has been the
source of a few issues over the years but none of the older solutions I've
looked at have helped.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listi
Frederique
2018-05-06 22:12:44 UTC
Permalink
Somebody with the same issue:
http://www.interlopers.net/forum/viewtopic.php?f=2&t=16578

Try asking on there if you do not end up with a solution on this mailing
list.
Post by Tom Schumann
I'm trying to compile https://github.com/ValveSoftware/source-sdk-2013 in
Visual Studio 2017 which I know isn't supported, but I've generated a .sln
using the fix at https://developer.valvesoftware.com/wiki/Source_SDK_2013,
but I get compile errors which I can't figure.
Most of the problems seem to be in memoverride.cpp - I get a few errors on
line 122 of
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dceea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/tier0/memoverride.cpp
'void' should be preceded by ';' and missing type specifier - int assumed.
Note: C++ does not support default-int
By eye it all seems okay but it's like the compiler thinks there's a
missing or stray semicolon somewhere.
Anyone had any luck with this? It seems like memoverride.cpp has been the
source of a few issues over the years but none of the older solutions I've
looked at have helped.
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hl
Tom Schumann
2018-05-06 22:19:11 UTC
Permalink
Yeah I saw that but it looked their problem was not using Visual Studio.
Post by Frederique
http://www.interlopers.net/forum/viewtopic.php?f=2&t=16578
Try asking on there if you do not end up with a solution on this mailing
list.
Post by Tom Schumann
I'm trying to compile https://github.com/ValveSoftware/source-sdk-2013 in
Visual Studio 2017 which I know isn't supported, but I've generated a .sln
using the fix at https://developer.valvesoftware.com/wiki/Source_SDK_2013
,
but I get compile errors which I can't figure.
Most of the problems seem to be in memoverride.cpp - I get a few errors on
line 122 of
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dce
ea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/tier0/memoverride.cpp
'void' should be preceded by ';' and missing type specifier - int assumed.
Note: C++ does not support default-int
By eye it all seems okay but it's like the compiler thinks there's a
missing or stray semicolon somewhere.
Anyone had any luck with this? It seems like memoverride.cpp has been the
source of a few issues over the years but none of the older solutions I've
looked at have helped.
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/h
Francisco Javier Bizcocho Antúnez
2018-05-06 22:56:40 UTC
Permalink
Usually mixing projects that are compiled with different versions of VS
brings nothing but problems. Even if you manage to compile and link you can
always have runtime issues. The C++ runtimes are dufferent. So rule of the
thumb: use the same compiler to avoid this kind of issues.
Post by Tom Schumann
Yeah I saw that but it looked their problem was not using Visual Studio.
Post by Frederique
http://www.interlopers.net/forum/viewtopic.php?f=2&t=16578
Try asking on there if you do not end up with a solution on this mailing
list.
Post by Tom Schumann
I'm trying to compile https://github.com/ValveSoftware/source-sdk-2013
in
Post by Frederique
Post by Tom Schumann
Visual Studio 2017 which I know isn't supported, but I've generated a
.sln
Post by Frederique
Post by Tom Schumann
using the fix at
https://developer.valvesoftware.com/wiki/Source_SDK_2013
Post by Frederique
Post by Tom Schumann
,
but I get compile errors which I can't figure.
Most of the problems seem to be in memoverride.cpp - I get a few errors
on
Post by Frederique
Post by Tom Schumann
line 122 of
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dce
ea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/tier0/memoverride.cpp
'void' should be preceded by ';' and missing type specifier - int
assumed.
Post by Frederique
Post by Tom Schumann
Note: C++ does not support default-int
By eye it all seems okay but it's like the compiler thinks there's a
missing or stray semicolon somewhere.
Anyone had any luck with this? It seems like memoverride.cpp has been
the
Post by Frederique
Post by Tom Schumann
source of a few issues over the years but none of the older solutions
I've
Post by Frederique
Post by Tom Schumann
looked at have helped.
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valveso
Tom Schumann
2018-05-07 04:51:04 UTC
Permalink
Possibly but I've compiled Source plugins without issue (I just didn't use
the custom memory management for them).
Anyway, looks like _CRTNOALIAS was probably defined in a previous version
of Visual Studio but not longer is. It looks like it should be #define
_CRTNOALIAS __declspec(noalias)

On 7 May 2018 at 08:56, Francisco Javier Bizcocho Antúnez <
Post by Francisco Javier Bizcocho Antúnez
Usually mixing projects that are compiled with different versions of VS
brings nothing but problems. Even if you manage to compile and link you can
always have runtime issues. The C++ runtimes are dufferent. So rule of the
thumb: use the same compiler to avoid this kind of issues.
Post by Tom Schumann
Yeah I saw that but it looked their problem was not using Visual Studio.
Post by Frederique
http://www.interlopers.net/forum/viewtopic.php?f=2&t=16578
Try asking on there if you do not end up with a solution on this
mailing
Post by Tom Schumann
Post by Frederique
list.
Post by Tom Schumann
I'm trying to compile https://github.com/
ValveSoftware/source-sdk-2013
Post by Tom Schumann
in
Post by Frederique
Post by Tom Schumann
Visual Studio 2017 which I know isn't supported, but I've generated a
.sln
Post by Frederique
Post by Tom Schumann
using the fix at
https://developer.valvesoftware.com/wiki/Source_SDK_2013
Post by Frederique
Post by Tom Schumann
,
but I get compile errors which I can't figure.
Most of the problems seem to be in memoverride.cpp - I get a few
errors
Post by Tom Schumann
on
Post by Frederique
Post by Tom Schumann
line 122 of
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dce
ea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/tier0/
memoverride.cpp
Post by Tom Schumann
Post by Frederique
Post by Tom Schumann
- this declaration has no storage class or type specifier, syntax
'void' should be preceded by ';' and missing type specifier - int
assumed.
Post by Frederique
Post by Tom Schumann
Note: C++ does not support default-int
By eye it all seems okay but it's like the compiler thinks there's a
missing or stray semicolon somewhere.
Anyone had any luck with this? It seems like memoverride.cpp has been
the
Post by Frederique
Post by Tom Schumann
source of a few issues over the years but none of the older solutions
I've
Post by Frederique
Post by Tom Schumann
looked at have helped.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftware.com/c
Tom Schumann
2018-05-07 05:38:56 UTC
Permalink
Well that got me a bit further - looks like _CRTNOALIAS was defined as
nothing (based on https://doxygen.reactos.org/d7/d45/crtdefs_8h_source.html
).
Also, pthreadmbcinfo is now struct __crt_multibyte_data*, pthreadlocinfo is
now struct __crt_locale_data*, _locale_tstruct is now _locale_t
and _crtDbgFlag and _crtBreakAlloc have both gone from being global flags
to macros defining function pointer types.
Post by Tom Schumann
Possibly but I've compiled Source plugins without issue (I just didn't use
the custom memory management for them).
Anyway, looks like _CRTNOALIAS was probably defined in a previous version
of Visual Studio but not longer is. It looks like it should be #define
_CRTNOALIAS __declspec(noalias)
On 7 May 2018 at 08:56, Francisco Javier Bizcocho Antúnez <
Post by Francisco Javier Bizcocho Antúnez
Usually mixing projects that are compiled with different versions of VS
brings nothing but problems. Even if you manage to compile and link you can
always have runtime issues. The C++ runtimes are dufferent. So rule of the
thumb: use the same compiler to avoid this kind of issues.
Post by Tom Schumann
Yeah I saw that but it looked their problem was not using Visual Studio.
Post by Frederique
http://www.interlopers.net/forum/viewtopic.php?f=2&t=16578
Try asking on there if you do not end up with a solution on this
mailing
Post by Tom Schumann
Post by Frederique
list.
Post by Tom Schumann
I'm trying to compile https://github.com/ValveSoftwa
re/source-sdk-2013
Post by Tom Schumann
in
Post by Frederique
Post by Tom Schumann
Visual Studio 2017 which I know isn't supported, but I've generated a
.sln
Post by Frederique
Post by Tom Schumann
using the fix at
https://developer.valvesoftware.com/wiki/Source_SDK_2013
Post by Frederique
Post by Tom Schumann
,
but I get compile errors which I can't figure.
Most of the problems seem to be in memoverride.cpp - I get a few
errors
Post by Tom Schumann
on
Post by Frederique
Post by Tom Schumann
line 122 of
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dce
ea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/tier0/memov
erride.cpp
Post by Tom Schumann
Post by Frederique
Post by Tom Schumann
- this declaration has no storage class or type specifier, syntax
'void' should be preceded by ';' and missing type specifier - int
assumed.
Post by Frederique
Post by Tom Schumann
Note: C++ does not support default-int
By eye it all seems okay but it's like the compiler thinks there's a
missing or stray semicolon somewhere.
Anyone had any luck with this? It seems like memoverride.cpp has been
the
Post by Frederique
Post by Tom Schumann
source of a few issues over the years but none of the older solutions
I've
Post by Frederique
Post by Tom Schumann
looked at have helped.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list
archives,
Post by Tom Schumann
Post by Frederique
Post by Tom Schumann
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://list.valvesoftwar
Francisco Javier Bizcocho Antúnez
2018-05-07 05:47:09 UTC
Permalink
You are not gaining anything by using VS2017, all the relevant engine
functionality is already compiled. You're only getting the burden of making
it work with a compiler with a different C++ runtime. Just install VS2013
compiler and all the issues will go away.
Post by Tom Schumann
Well that got me a bit further - looks like _CRTNOALIAS was defined as
nothing (based on
https://doxygen.reactos.org/d7/d45/crtdefs_8h_source.html
).
Also, pthreadmbcinfo is now struct __crt_multibyte_data*, pthreadlocinfo is
now struct __crt_locale_data*, _locale_tstruct is now _locale_t
and _crtDbgFlag and _crtBreakAlloc have both gone from being global flags
to macros defining function pointer types.
Post by Tom Schumann
Possibly but I've compiled Source plugins without issue (I just didn't
use
Post by Tom Schumann
the custom memory management for them).
Anyway, looks like _CRTNOALIAS was probably defined in a previous version
of Visual Studio but not longer is. It looks like it should be #define
_CRTNOALIAS __declspec(noalias)
On 7 May 2018 at 08:56, Francisco Javier Bizcocho Antúnez <
Post by Francisco Javier Bizcocho Antúnez
Usually mixing projects that are compiled with different versions of VS
brings nothing but problems. Even if you manage to compile and link you can
always have runtime issues. The C++ runtimes are dufferent. So rule of
the
Post by Tom Schumann
Post by Francisco Javier Bizcocho Antúnez
thumb: use the same compiler to avoid this kind of issues.
Post by Tom Schumann
Yeah I saw that but it looked their problem was not using Visual
Studio.
Post by Tom Schumann
Post by Francisco Javier Bizcocho Antúnez
Post by Tom Schumann
Post by Frederique
http://www.interlopers.net/forum/viewtopic.php?f=2&t=16578
Try asking on there if you do not end up with a solution on this
mailing
Post by Tom Schumann
Post by Frederique
list.
Post by Tom Schumann
I'm trying to compile https://github.com/ValveSoftwa
re/source-sdk-2013
Post by Tom Schumann
in
Post by Frederique
Post by Tom Schumann
Visual Studio 2017 which I know isn't supported, but I've
generated a
Post by Tom Schumann
Post by Francisco Javier Bizcocho Antúnez
Post by Tom Schumann
.sln
Post by Frederique
Post by Tom Schumann
using the fix at
https://developer.valvesoftware.com/wiki/Source_SDK_2013
Post by Frederique
Post by Tom Schumann
,
but I get compile errors which I can't figure.
Most of the problems seem to be in memoverride.cpp - I get a few
errors
Post by Tom Schumann
on
Post by Frederique
Post by Tom Schumann
line 122 of
https://github.com/ValveSoftware/source-sdk-2013/blob/0d8dce
ea4310fde5706b3ce1c70609d72a38efdf/mp/src/public/tier0/memov
erride.cpp
Post by Tom Schumann
Post by Frederique
Post by Tom Schumann
- this declaration has no storage class or type specifier, syntax
'void' should be preceded by ';' and missing type specifier - int
assumed.
Post by Frederique
Post by Tom Schumann
Note: C++ does not support default-int
By eye it all seems okay but it's like the compiler thinks there's
a
Post by Tom Schumann
Post by Francisco Javier Bizcocho Antúnez
Post by Tom Schumann
Post by Frederique
Post by Tom Schumann
missing or stray semicolon somewhere.
Anyone had any luck with this? It seems like memoverride.cpp has
been
Post by Tom Schumann
Post by Francisco Javier Bizcocho Antúnez
Post by Tom Schumann
the
Post by Frederique
Post by Tom Schumann
source of a few issues over the years but none of the older
solutions
Post by Tom Schumann
Post by Francisco Javier Bizcocho Antúnez
Post by Tom Schumann
I've
Post by Frederique
Post by Tom Schumann
looked at have helped.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list
archives,
Post by Tom Schumann
Post by Frederique
Post by Tom Schumann
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list
archives,
Post by Tom Schumann
Post by Francisco Javier Bizcocho Antúnez
Post by Tom Schumann
Post by Frederique
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
https://lis

Continue reading on narkive:
Loading...