Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue compiling custom MM plugin for x64 CSS #301

Open
ClaudiuHKS opened this issue Feb 24, 2025 · 1 comment
Open

Issue compiling custom MM plugin for x64 CSS #301

ClaudiuHKS opened this issue Feb 24, 2025 · 1 comment

Comments

@ClaudiuHKS
Copy link

bool operator==( CUtlSymbol const& src ) const { return m_Id == src.m_Id; }

1>K:\hl2sdk-css\public\tier1\utlsymbol.h(108,14): error C2666: 'CUtlSymbol::operator ==': overloaded functions have similar conversions
1>(compiling source file 'hgsm.cpp')
1>    K:\hl2sdk-css\public\tier1\utlsymbol.h(48,7):
1>    could be 'bool CUtlSymbol::operator ==(const CUtlSymbol &) const' [rewritten expression '!(x == y)']
1>    K:\hl2sdk-css\public\tier1\utlsymbol.h(108,14):
1>    or       'built-in C++ operator!=(UtlSymId_t, UtlSymId_t)'
1>    K:\hl2sdk-css\public\tier1\utlsymbol.h(108,14):
1>    while trying to match the argument list '(CUtlSymbol, UtlSymId_t)'

Line 48 needs to be commented out, otherwise it comes in conflict with:

	inline bool HasElement( const char* pStr ) const
	{
		return Find( pStr ) != UTL_INVAL_SYMBOL;
	}
@ClaudiuHKS ClaudiuHKS changed the title Issue compiling MM plugin for x64 CSS Issue compiling custom MM plugin for x64 CSS Feb 24, 2025
@psychonic
Copy link
Member

Can you show your compiler arguments? This error is known to occur with opting into C++23, which Valve's SDK does not currently support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants