I'm currently working on a SourceMod extension that currently uses Valve's CUtlVector. However, I'm actually copying some code from another extension file that already uses CVector from sh_vector.h, so I was looking to convert over to it.
My project is using the SourceMod sample extension from 1.3.7's source code.
When I try to compile the project in Visual Studio 2008, I have a slight problem.
The problem I'm having is this. On this line:
Code:
CVector<unsigned int> m_Votes;
I'm getting this error:
Quote:
error C2143: syntax error : missing ';' before '<'
|
Near the top of the file, I have this include:
Code:
#include <sh_vector.h>
I have verified that MMSOURCE18 is properly set, so sh_vector.h should be in the project's include paths (via "$(MMSOURCE18)\core\sourcehook" ). I've also tried using this include instead:
Code:
#include "sh_vector.h"
The file this code appears in is not extension.h/extension.cpp but does include extension.h.
What am I doing wrong here?
__________________